[R-marketing-bugs] Bug. p16?

Chris Chapman cnchapman at gmail.com
Mon Mar 23 16:52:12 CET 2015


(copying from separate thread)

It looks like you may need to specify the SEM model on 3 lines instead of a
single line. Just hit ENTER after "iSalesSAT" on the first line and R will
create a new line with "+" for you to continue.

Here's a direct copy from the R console:

> satModel <- "SAT =~ iProdSAT + iSalesSAT
+              REC =~ iProdREC + iSalesREC
+              REC ~  SAT "

> library(lavaan)
> sat.fit <- cfa(satModel, data=satData)
> summary(sat.fit, fit.m=TRUE)
lavaan (0.5-17) converged normally after  31 iterations
...

Also, just to check, make sure that you've loaded "satData". You could
check that with summary(satData)

Best,

-- Chris


On Mon, Mar 23, 2015 at 8:34 AM, Andrew Reynolds <
Andrew.Reynolds at illuminas.com> wrote:

>  > satModel <- "SAT =~ iProdSAT + iSalesSAT REC =~ iProdREC + ISalesREC
> REC ~ SAT "
>
> > library(lavaan)
>
> > sat.fit <- cfa(satModel, data=satData)
>
> Error in ~iProdSAT + iSalesSATREC = ~iProdREC + ISalesRECREC ~ SAT :
>
>   object 'iProdSAT' not found
>
>
>
> Can’t see how I am misspecifying the model.
>
>
>
> ______________________________________________________________________
> This email has been scanned by the Symantec Email Security.cloud service.
> For more information please visit http://www.symanteccloud.com
> ______________________________________________________________________
>
> _______________________________________________
> R-marketing-bugs mailing list
> R-marketing-bugs at lists.r-forge.r-project.org
>
> http://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/r-marketing-bugs
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/r-marketing-bugs/attachments/20150323/3de369e1/attachment.html>


More information about the R-marketing-bugs mailing list