You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to lavaan
Hi,
I am trying to fit RI-CLPM into my data which has two variables (X and Y) across 5-time points. X is a numerical variable while Y is a binary/dichotomous variable. I am getting the following error while using 'lavaan' package in R.
Can someone please help me if I can do RI-CLPM with an unordered categorical variable? I saw in the FAQs that Mplus v8.7 can deal with categorical data, so has it not yet been updated in the 'lavaan' R package?
Thanks,
Aj
Terrence Jorgensen
unread,
Jan 19, 2023, 4:19:23 AM1/19/23
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to lavaan
Y is a binary/dichotomous variable
Then it is arbitrary to consider it (un)ordered.
do RI-CLPM with an unordered categorical variable?
Not in lavaan. And it is binary, so just change its class to ordered()
I saw in the FAQs that Mplus v8.7 can deal with categorical data, so has it not yet been updated in the 'lavaan' R package?
Mplus does the same thing with binary data that lavaan does. But Mplus also implements a nominal response model, which is only relevant for multinomial (not binary) categorical variables.
Terrence D. Jorgensen
Assistant Professor, Methods and Statistics
Research Institute for Child Development and Education, the University of Amsterdam
On 1/18/23 08:28, Anjana Rajagopal wrote:
> Hi,
>
> I am trying to fit RI-CLPM into my data which has two variables (X and
> Y) across 5-time points. X is a numerical variable while Y is a
> binary/dichotomous variable. I am getting the following error while
> using 'lavaan' package in R.
>
> Screenshot 2023-01-18 172542.png
>
> Can someone please help me if I can do RI-CLPM with an unordered
> categorical variable? I saw in the FAQs that Mplus v8.7 can deal with
> categorical data, so has it not yet been updated in the 'lavaan' R package?
>
> Thanks,
> Aj
>
>