simsem / semTools

Useful tools for structural equation modeling
74 stars 35 forks source link

Error in solve.default(H, A) : Lapack routine dgesv: system is exactly singular: U[11,11] = 0 #99

Closed atanasj closed 2 years ago

atanasj commented 2 years ago

I am trying to run the auxiliary function on a Random Intercept Cross Lagged Panel Model. However, getting an error (see below).

I am not sure if this is related to something I have done, my data, or something else… can you please give me some guidance as to what could be causing this error? Please let me know if you need any more info about my issue. Thanks.

> 
+ riclpm_sat_fit <-
+   auxiliary(
+     riclpm_sat_mod,
+     data = aux_df,
+     aux = c("age", "sex_mf", "ses_int_log", "cov_sess", "hxdsh", "hxtrauma"),
+     fun = "lavaan",
+     missing = "ML",
+     estimator = "MLR",
+     meanstructure = TRUE,
+     int.ov.free = TRUE,
+     fixed.x = FALSE,
+     bounds = TRUE
+   )
+ 
+ Error in solve.default(H, A) : 
  Lapack routine dgesv: system is exactly singular: U[11,11] = 0
In addition: Warning message:
In lav_data_full(data = data, group = group, cluster = cluster,  :
  lavaan WARNING: some cases are empty and will be ignored:
  312
> 
atanasj commented 2 years ago

This was caused by a model misspecification.