[R] Maintaining data order in factanal with missing data

2013-07-26 Thread s00123776
Hi, I'm new to R, so sorry if this is a simple answer. I'm currently trying to collapse some ordinal variables into a composite; the program ideally should take a data frame as input, perform a factor analysis, compute factor scores, sds, etc., and return the rescaled scores and loadings. The

Re: [R] Maintaining data order in factanal with missing data

2013-07-26 Thread PIKAL Petr
. Petr -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- project.org] On Behalf Of s00123...@myacu.edu.au Sent: Friday, July 26, 2013 9:35 AM To: r-help@r-project.org Subject: [R] Maintaining data order in factanal with missing data Hi, I'm new to R

Re: [R] Maintaining data order in factanal with missing data

2013-07-26 Thread PIKAL Petr
26, 2013 2:22 PM To: PIKAL Petr; 'Justin Delahunty'; r-help@r-project.org Subject: RE: [R] Maintaining data order in factanal with missing data Hi Petr, Thanks for the quick response. Unfortunately I cannot share the data I am working with, however please find attached a suitable R

Re: [R] Maintaining data order in factanal with missing data

2013-07-26 Thread Justin Delahunty
To: Justin Delahunty; r-help@r-project.org Subject: RE: [R] Maintaining data order in factanal with missing data Hi You provided functions, so far so good. But without data it would be quite difficult to understand what the functions do and where could be the issue. I suspect combination

Re: [R] Maintaining data order in factanal with missing data

2013-07-26 Thread Justin Delahunty
-help@r-project.org Subject: RE: [R] Maintaining data order in factanal with missing data Hi Well, the function init.dfs does nothing as all data frames created inside it does not propagate to global environment and there is nothing what the function returns. Tha last line (when used outside

Re: [R] Maintaining data order in factanal with missing data

2013-07-26 Thread PIKAL Petr
-Original Message- From: Justin Delahunty [mailto:a...@genius.net.au] Sent: Friday, July 26, 2013 3:34 PM To: PIKAL Petr; 'Justin Delahunty'; 'Justin Delahunty'; r-help@r- project.org Subject: RE: [R] Maintaining data order in factanal with missing data Hi Petr, So sorry, I

Re: [R] Maintaining data order in factanal with missing data

2013-07-26 Thread David Carlson
; 'Justin Delahunty'; r-help@r-project.org Subject: Re: [R] Maintaining data order in factanal with missing data Hi There are probably better options but merge(data.frame(x=1:154),data.frame(x=names(ab.1.fa[[1]]), y=ab.1.fa[[1]]), all.x=T) gives you data frame with NA when there was missing value