easystats / report

:scroll: :tada: Automated reporting of objects in R
https://easystats.github.io/report/
Other
676 stars 68 forks source link

report for modification indices from lavaan #31

Open DominiqueMakowski opened 4 years ago

DominiqueMakowski commented 4 years ago
library(lavaan)
structure <- '
  # latent variable definitions
    ind60 =~ x1 + x2 + x3
    dem60 =~ y1 + a*y2 + b*y3 + c*y4
    dem65 =~ y5 + a*y6 + b*y7 + c*y8
  # regressions
    dem60 ~ ind60
    dem65 ~ ind60 + dem60
  # residual correlations
    y1 ~~ y5
    y2 ~~ y4 + y6
    y3 ~~ y7
    y4 ~~ y8
    y6 ~~ y8
'
model <- lavaan::sem(structure, data=PoliticalDemocracy)
modificationindices(model)

absolute MI threshold? Elbow of the curve (jump in ordered MI values using estimate's derivative)?

DominiqueMakowski commented 3 years ago

For @tam-pham