Problem with plotting using semPaths

Posted on
No user picture. mike_n Joined: 05/06/2021
Forums

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

Replied on Fri, 05/07/2021 - 01:21
Picture of user. Mike Cheung Joined: 10/08/2009

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