You are here

Error message on TSSEM1

2 posts / 0 new
Last post
Buil's picture
Offline
Joined: 10/07/2018 - 19:03
Error message on TSSEM1
AttachmentSize
Office spreadsheet icon data66 KB
File script5.16 KB

Dear Mike,
My name is B.I.Chung. I am writing a paper by MASEM analysis by using TSSEM procedure guided in your paper "Meta-analytic structural equation modeling". I sincerely appreciate all your explanation on the procedure of TSSEM in detail.
I prepared a correlation data for TSSEM from my previous meta-analysis and at the stage1 of Random-effects model, I am in trouble with below error message:

> stage1random <- tssem1(Cov=cordat, n=BI_MASEM_data_2$N, method="REM", RE.type="Diag")
Error in .Primitive("*")(dots[[1L]][[1L]], dots[[2L]][[1L]]) :
non-numeric argument to binary operator

I am a beginner of R program, so I don't know what the above error message means. Would you help me? I will appreciate it.

Best regards,

B.I.Chung

Mike Cheung's picture
Offline
Joined: 10/08/2009 - 22:37
Dear B.I.Chung,

Dear B.I.Chung,

This error is not related to the metaSEM package.

If you check the output of head(cordat), you will notice that cordat are character matrices. The tssem1() function expects numeric data. You may need to convert the characters to numerics before the analyses.

Regards,
Mike

Log in or register to post comments