Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

simulateData with standardized=TRUE #46

Open
jtextor opened this issue Jan 13, 2016 · 2 comments
Open

simulateData with standardized=TRUE #46

jtextor opened this issue Jan 13, 2016 · 2 comments

Comments

@jtextor
Copy link

@jtextor jtextor commented Jan 13, 2016

The function "simulateData" is currently not able to provide standardized output in the general case, as the following example demonstrates:

lav <- lavaanify( "
    y ~ (-.5) * x + (.25) * z
    x ~ .5*U
    z ~ .5*U
")
diag(cov(simulateData( lav, standardized=TRUE, sample.nobs=100000 )))

The variance of y far exceeds 1.

@ylenio
Copy link

@ylenio ylenio commented Jan 14, 2016

Also, the skewness and kurtosis arguments in simulateData produce empirical skewness and kurtosis that do not always match the simulated values. For example, often empirical skewness and kurtosis values are much lower than the expected (i.e. simulated) values.

@philchalmers
Copy link
Contributor

@philchalmers philchalmers commented Apr 9, 2017

@ylenio that property may be related to this pull request: #79. But in general this data generation method isn't perfect.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.