Wrong input for specifying exogenous or endogonous latent variables

25 views
Skip to first unread message

周露阳

unread,
May 22, 2019, 11:54:29 AM5/22/19
to lavaan
After running my LMS codes, I was warned as follows:

> library("nlsem")
> model <- specify_sem(num.x = 20, num.y = 3, num.xi = 7, num.eta = 1,
+                      xi = "x1-x3, x4~x6, x7~x9, x10~x12, x13~x15,x16-x18, x19~x20", 
+                      eta = "y1-y3", interaction = "eta1~xi1:xi2")
Error in value[[3L]](cond) : 
  Wrong input for specifying exogenous or endogonous latent variables (xi or etas). See ?specify_sem.

How can I do to revise my codes?

I checked and recheck "specifiy_sem", but had no idea about this.

周露阳

unread,
May 22, 2019, 11:59:55 AM5/22/19
to lavaan
I have identified the problems. x4~x6 should be replaced by x4-x6.

在 2019年5月22日星期三 UTC+8下午11:54:29,周露阳写道:

car...@web.de

unread,
May 22, 2019, 12:00:07 PM5/22/19
to lav...@googlegroups.com
At first glance, I'd say it's x16-x18 and y1-y3. All other declarations use ~ and not -. Best.
Am 22.05.19, 17:54, "周露阳" <85853...@gmail.com> schrieb:
After running my LMS codes, I was warned as follows:

> library("nlsem")
> model <- specify_sem(num.x = 20, num.y = 3, num.xi = 7, num.eta = 1,
+                      xi = "x1-x3, x4~x6, x7~x9, x10~x12, x13~x15,x16-x18, x19~x20", 
+                      eta = "y1-y3", interaction = "eta1~xi1:xi2")
Error in value[[3L]](cond) : 
  Wrong input for specifying exogenous or endogonous latent variables (xi or etas). See ?specify_sem.

How can I do to revise my codes?

I checked and recheck "specifiy_sem", but had no idea about this.

--
You received this message because you are subscribed to the Google Groups "lavaan" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lavaan+un...@googlegroups.com.
To post to this group, send email to lav...@googlegroups.com.
Visit this group at https://groups.google.com/group/lavaan.
To view this discussion on the web visit https://groups.google.com/d/msgid/lavaan/b227046c-0f95-4311-b277-e806e6abf6a4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

car...@web.de

unread,
May 22, 2019, 12:01:15 PM5/22/19
to lav...@googlegroups.com
Okay, then in this way.
Am 22.05.19, 17:59, "周露阳" <85853...@gmail.com> schrieb:
I have identified the problems. x4~x6 should be replaced by x4-x6.

在 2019年5月22日星期三 UTC+8下午11:54:29,周露阳写道:
After running my LMS codes, I was warned as follows:

> library("nlsem")
> model <- specify_sem(num.x = 20, num.y = 3, num.xi = 7, num.eta = 1,
+                      xi = "x1-x3, x4~x6, x7~x9, x10~x12, x13~x15,x16-x18, x19~x20", 
+                      eta = "y1-y3", interaction = "eta1~xi1:xi2")
Error in value[[3L]](cond) : 
  Wrong input for specifying exogenous or endogonous latent variables (xi or etas). See ?specify_sem.

How can I do to revise my codes?

I checked and recheck "specifiy_sem", but had no idea about this.

--
You received this message because you are subscribed to the Google Groups "lavaan" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lavaan+un...@googlegroups.com.
To post to this group, send email to lav...@googlegroups.com.
Visit this group at https://groups.google.com/group/lavaan.

周露阳

unread,
May 22, 2019, 1:52:59 PM5/22/19
to lavaan
Thank you very much.

在 2019年5月23日星期四 UTC+8上午12:00:07,car...@web.de写道:
At first glance, I'd say it's x16-x18 and y1-y3. All other declarations use ~ and not -. Best.
Am 22.05.19, 17:54, "周露阳" <85853...@gmail.com> schrieb:
After running my LMS codes, I was warned as follows:

> library("nlsem")
> model <- specify_sem(num.x = 20, num.y = 3, num.xi = 7, num.eta = 1,
+                      xi = "x1-x3, x4~x6, x7~x9, x10~x12, x13~x15,x16-x18, x19~x20", 
+                      eta = "y1-y3", interaction = "eta1~xi1:xi2")
Error in value[[3L]](cond) : 
  Wrong input for specifying exogenous or endogonous latent variables (xi or etas). See ?specify_sem.

How can I do to revise my codes?

I checked and recheck "specifiy_sem", but had no idea about this.

--
You received this message because you are subscribed to the Google Groups "lavaan" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lav...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages