You are here

Problem with plotting using semPaths

3 posts / 0 new
Last post
mike_n's picture
Offline
Joined: 05/06/2021 - 02:10
Problem with plotting using semPaths
AttachmentSize
PDF icon code115.08 KB
Binary Data data561 bytes

Dear professor Cheung,
I am running into a problem with plotting my model. I have included the replicated data, and my script. My error is that:
Error in if (Layout[x[1], 2] != Layout[x[2], 2]) return(0) else return(sum(Layout[Layout[, :
missing value where TRUE/FALSE needed

I’ve tried to search this error online, but I did not prevail. I hope you can take a quick peek and help me with this problem. I’d really appreciate your time.

Sincerely,

Mike

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

Hi Mike

I believe that the error is related to variable names. c("Brand Equity", "Performance", "Value Equity", "Relationship Equity") does not work well as it contains spaces.

It works fine if you change it to c( "Brand_Equity", "Performance", "Value_Equity", "Relationship_Equity").

Best,
Mike

mike_n's picture
Offline
Joined: 05/06/2021 - 02:10
Thank you professor for your

Thank you professor for your reply. I really appreciate it.