Skip to content

est_joint in lsem with MLR/WLSMV estimators #27

Description

@StanislawCzerwinski

Hello.

Is it possible to use the joint estimation method for lsem while using the MLR estimator? While using this code, I am getting an error:
model <- 'cesd7=~NA*R3895000+R3895300+R3895400+R3895500+R3895900+R3896600+R3896800
cesd7~~1*cesd7'
result <- lsem.estimate(lavmodel = model,
data = nlsy79_clean,
moderator = "int",
moderator.grid = seq(-2.5, 2.5, by = 0.5),
h=2,
estimator="MLR",
meanstructure=T,
residualize = FALSE,
est_joint = TRUE
)
The error I'm getting:
'lavaan::lavaan(model = lavmodel__, sample.cov = wcov, sample.mean = wmean, ':
lavaan ERROR: estimator MLR requires full data or user-provided NACOV

I am providing the full data. The code works when not using est_joint.

Moreover, a similar error occurs when trying the WLSMV estimator:
'lav_samplestats_from_moments(sample.cov = sample.cov, sample.mean = sample.mean, ':
lavaan ERROR: the (D)WLS estimator is only available with full data or with a user-provided WLS.V

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions