You are here

METASEM with 3 variables

5 posts / 0 new
Last post
guchriste's picture
Offline
Joined: 08/31/2018 - 09:42
METASEM with 3 variables
AttachmentSize
PDF icon Model 2 results_forum.pdf95.6 KB

Hello,

We would like to conduct a METASEM for a model with three variables: Mov (dependant); Psy & pai (independent).

I used the R codes available in Cheung and in Hagger 2018. Unfortunately, I have an error to determine the indirect effect of Pai on Mov through Psy. I can only have the direct effects between the three variables.

I think the problem occurs in stage 2 :

> random2 <- tssem2(random1, Amatrix=A1, Smatrix=S1, diag.constraints=TRUE,
+ intervals.type="LB", mx.algebras( Ind=mxAlgebra(PaitoPsy*PaitoMov, name="Ind"))

Thanks for your help,
Guillaume

Mike Cheung's picture
Offline
Joined: 10/08/2009 - 22:37
Hi Guillaume,

Hi Guillaume,

Could you attach the R code in plain text? It's difficult to work with the PDF.

Best,
Mike

guchriste's picture
Offline
Joined: 08/31/2018 - 09:42
Hi,

Hi,

Thank you for your help!
Here is the script in text and R files
Best,
Guillaume

File attachments: 
Mike Cheung's picture
Offline
Joined: 10/08/2009 - 22:37
Hi Guillaume,

Hi Guillaume,

Please see the revised code. It seems to work fine.

Best,
Mike

File attachments: 
guchriste's picture
Offline
Joined: 08/31/2018 - 09:42
Thank you so much for your

Thank you so much for your help!
Best wishes
Guillaume

Log in or register to post comments