<div dir="ltr">(copying from separate thread)<div><br></div><div><div dir="ltr" style="font-size:13px">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.<div><br></div><div>Here's a direct copy from the R console:<div><br></div><div><div><font face="monospace, monospace">> satModel <- "SAT =~ iProdSAT + iSalesSAT</font></div><div><font face="monospace, monospace">+              REC =~ iProdREC + iSalesREC</font></div><div><font face="monospace, monospace">+              REC ~  SAT "</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">> library(lavaan)<br></font></div><div><font face="monospace, monospace">> sat.fit <- cfa(satModel, data=satData)</font></div><div><font face="monospace, monospace">> summary(sat.fit, fit.m=TRUE)</font></div><div><font face="monospace, monospace">lavaan (0.5-17) converged normally after  31 iterations</font></div></div><div>...</div><div><br></div><div>Also, just to check, make sure that you've loaded "satData". You could check that with <font face="monospace, monospace">summary(satData)</font></div></div><div><font face="arial, helvetica, sans-serif"><br></font></div><div><font face="arial, helvetica, sans-serif">Best,</font></div><div><font face="arial, helvetica, sans-serif"><br></font></div><div><font face="arial, helvetica, sans-serif">-- Chris</font></div><div><font face="arial, helvetica, sans-serif"><br></font></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Mar 23, 2015 at 8:34 AM, Andrew Reynolds <span dir="ltr"><<a href="mailto:Andrew.Reynolds@illuminas.com" target="_blank">Andrew.Reynolds@illuminas.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div lang="EN-GB" link="blue" vlink="purple">
<div>
<p class="MsoNormal" style="word-break:break-all"><span style="font-size:10.0pt;font-family:"Lucida Console";color:blue;background:#e1e2e5">> satModel <- "SAT =~ iProdSAT + iSalesSAT REC =~ iProdREC + ISalesREC REC ~ SAT "<u></u><u></u></span></p>
<p class="MsoNormal" style="word-break:break-all"><span style="font-size:10.0pt;font-family:"Lucida Console";color:blue;background:#e1e2e5">> library(lavaan)<u></u><u></u></span></p>
<p class="MsoNormal" style="word-break:break-all"><span style="font-size:10.0pt;font-family:"Lucida Console";color:blue;background:#e1e2e5">> sat.fit <- cfa(satModel, data=satData)<u></u><u></u></span></p>
<p class="MsoNormal" style="word-break:break-all"><span style="font-size:10.0pt;font-family:"Lucida Console";color:#c5060b;background:#e1e2e5">Error in ~iProdSAT + iSalesSATREC = ~iProdREC + ISalesRECREC ~ SAT :
<u></u><u></u></span></p>
<p class="MsoNormal" style="word-break:break-all"><span style="font-size:10.0pt;font-family:"Lucida Console";color:#c5060b;background:#e1e2e5">  object 'iProdSAT' not found</span><span style="font-size:10.0pt;font-family:"Lucida Console";color:black;background:#e1e2e5"><u></u><u></u></span></p>
<p class="MsoNormal"><span><u></u> <u></u></span></p>
<p class="MsoNormal"><span>Can’t see how I am misspecifying the model.<u></u><u></u></span></p>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<br clear="both">
______________________________________________________________________<br>
This email has been scanned by the Symantec Email Security.cloud service.<br>
For more information please visit <a href="http://www.symanteccloud.com" target="_blank">http://www.symanteccloud.com</a><br>
______________________________________________________________________<br>
</div>

<br>_______________________________________________<br>
R-marketing-bugs mailing list<br>
<a href="mailto:R-marketing-bugs@lists.r-forge.r-project.org">R-marketing-bugs@lists.r-forge.r-project.org</a><br>
<a href="http://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/r-marketing-bugs" target="_blank">http://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/r-marketing-bugs</a><br>
<br></blockquote></div><br></div>