[R-SIG-Mac] SEM model run error
Ross Tinsley
rtinsley at htmi.ch
Sat Jan 26 17:44:32 CET 2013
Thanks Timothy, took on board your points and also adjusted/added a couple more variables. Reading okay. Will post on generic r forum in future. Will check out the tutorials file also.
On 26 Jan 2013, at 17:30, Timothy Bates <tim.bates at ed.ac.uk> wrote:
> 1 This is not a mac question
> 2 You haven’t said what package you’re using
> 3. It is highly unlikely that the correct format is rtf.
>
> The main SEM packages in R are OpenMx, SEM, and lavaan.
>
> They all have tutorial pdfs, and examples of working models
>
> On 26 Jan 2013, at 4:09 PM, Ross Tinsley <rtinsley at htmi.ch> wrote:
>> Trying to run the following model:
>> cfa1.model <- specifyModel("~/Documents/Teaching/QMU, Edinburgh/Events/Beltane Fire Festival/quants/Audience motivation survey/SEM/Data/Very first pass at SEM.rtf")
>> file contents:
>>
>> Q7.Knowledge.of.Beltane -> Number.of.Attendances1, beta, NA
>> Age.band -> Q7.Knowledge.of.Beltane, alpha1, NA
>> Gender -> Q7.Knowledge.of.Beltane, alpha2, NA
>> std.ln.Q12.search.for.meaning -> Q7.Knowledge.of.Beltane, alpha3, NA
>> std.ln.Q11.spiritual.quest -> Q7.Knowledge.of.Beltane, alpha4, NA
>> Number.of.Attendances1 <-> Number.of.Attendances1, gamma1, NA
>> Age.band <-> Age.band, NA, 1
>> std.ln.Q12.search.for.meaning <-> std.ln.Q12.search.for.meaning, gamma3, NA
>> std.ln.Q11.spiritual.quest <-> std.ln.Q11.spiritual.quest, gamma4, NA
>>
>> but get the error message:
>>
>> Error in scan(file, what, nmax, sep, dec, quote, skip, nlines, na.strings, :
>> scan() expected 'a real', got 'NA\'
>> Any thoughts on why it's not working? Also if you know of any good SEM tutorials online?
>> Many thanks
>> Ross
>
> --
> The University of Edinburgh is a charitable body, registered in
> Scotland, with registration number SC005336.
>
> _______________________________________________
> R-SIG-Mac mailing list
> R-SIG-Mac at r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-mac
More information about the R-SIG-Mac
mailing list