extractlavaan2table: given a lavaan multigroup object returns a dataframe to be...

Description Usage Arguments Value See Also Examples

View source: R/extractlavaan2table_function.R

Description

<full description>

Usage

1
extractlavaan2table(inva = result)

Arguments

inva

a lavaan object of an invariance test

Value

dataframe

See Also

lavaan

Examples

 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)

lillion/emittr documentation built on May 10, 2020, 7:23 a.m.