RE: [R] Help with factanal and missing values

From: Antonio Prioglio <a.prioglio_at_city.ac.uk>
Date: Wed 14 Jul 2004 - 03:49:55 EST


On Tue, 13 Jul 2004, John Fox wrote:
>
> Two solutions are to use na.omit() to eliminate observations with missing
> data -- factanal(na.omit(datamatrix), factors=n) -- or to use a formula
> argument to factanal and pass the data as a data frame via the data argument
> -- factanal(~ var1 + ... + vark, factors=n, data=as.data.frame(datamatrix)).

Thanks this was helpful and more elegant than my solution to select the data with a call to complete.cases().

>
> By the way, what factanal() does would conventionally be described as
> exploratory, not confirmatory, factor analysis. For the latter, you might
> try the sem package.
>

Actually these CFAs are preliminary to a Path Analysis I had ambitions to do with the sem package rather than LISREL.

Could you give an example on how to do CFA with sem?

Saluti,
Antonio Prioglio

-- 
We are what we repeatedly do. Excellence, then, is not an act, but a habit.
							Aristoteles


    /"\
    \ /    ASCII RIBBON CAMPAIGN - AGAINST HTML MAIL 
     X                           - AGAINST MS ATTACHMENTS
    / \

http://www.gnu.org/philosophy/no-word-attachments.html

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Received on Wed Jul 14 03:57:17 2004

This archive was generated by hypermail 2.1.8 : Fri 18 Mar 2005 - 02:35:52 EST