Error in as.list(LIST) : object 'LIST' not found

69 views
Skip to first unread message

andrew...@yahoo.com.au

unread,
Mar 28, 2019, 10:01:09 AM3/28/19
to lavaan

I'm trying to a mediation analysis:

model.semantic2 <- 'ZGf ~ a*age
                Semantic ~ b*ZGf + c*age
                indirect :- a*b
                direct :- c
                total :- c + (a*b)'

fit2 <- sem(model.semantic2, data = data)

it returns the error message:

Error in as.list(LIST) : object 'LIST' not found

I can't figure out why, any tips?

Thanks

Edward Rigdon

unread,
Mar 28, 2019, 10:10:36 AM3/28/19
to lav...@googlegroups.com
The operator you want is in the 3rd, 4th and 5th lines of model syntax is := , not :-

--
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.
For more options, visit https://groups.google.com/d/optout.

andrew...@yahoo.com.au

unread,
Mar 28, 2019, 1:11:35 PM3/28/19
to lavaan
Thank you - very silly error on my part!!


On Thursday, March 28, 2019 at 2:10:36 PM UTC, Edward Rigdon wrote:
The operator you want is in the 3rd, 4th and 5th lines of model syntax is := , not :-

On Thu, Mar 28, 2019 at 10:01 AM andrewkmartin via lavaan <lav...@googlegroups.com> wrote:

I'm trying to a mediation analysis:

model.semantic2 <- 'ZGf ~ a*age
                Semantic ~ b*ZGf + c*age
                indirect :- a*b
                direct :- c
                total :- c + (a*b)'

fit2 <- sem(model.semantic2, data = data)

it returns the error message:

Error in as.list(LIST) : object 'LIST' not found

I can't figure out why, any tips?

Thanks

--
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