Description Usage Arguments Value See Also Examples
View source: R/extractlavaan2table_function.R
<full description>
1 | extractlavaan2table(inva = result)
|
inva |
a lavaan object of an invariance test |
dataframe
lavaan
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | require(semTools)
require(lavaan)
data(laurasdaten)
model_reak <- '
reakt =~ RE01_01 + RE01_02 + RE01_03 + RE01_04 + RE01_05 + RE01_06 +
RE01_07 + RE01_08 + RE01_09 + RE01_10 + RE01_11 + RE01_12 + RE01_13 +
RE01_14 + RE01_15 + RE01_16 + RE01_17 + RE01_18
RE01_05 ~~ RE01_10
RE01_05 ~~ RE01_07'
inva <- measurementInvariance(model_reak,laurasdaten,group="Geschlecht",estimator="WLSMV")
extractlavaan2table(inva)
## Not run:
# if you want e.g. latex output
gsub(" 0.000", " <.001",print(xtable(extractlavaan2table(inva),digits=3), type="latex", sanitize.text.function=identity),useBytes=T)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.