Dr Stuart Leask
2002-Feb-21 11:18 UTC
[R] Re: Factor analysis of categorical or mixed categorical/continuousdata in [R]
I am looking to fit one or more latent categorical variables to data that is a mixture of categorical and continuous variables. Factor analysis would work for continuous data, latent class analysis for categorical data. I understand that in a package such as MPlus I could perform a single analysis of both data types. Are there similar routines available in R? Stuart -----Original Message----- From: Prof Brian Ripley <ripley at stats.ox.ac.uk> To: Dr Stuart Leask <stuart.leask at nottingham.ac.uk> Cc: r-help at stat.math.ethz.ch <r-help at stat.math.ethz.ch> Date: 21 February 2002 10:53 Subject: [R] Re: Factor analysis of categorical or mixed categorical/continuousdata in [R]>On Thu, 21 Feb 2002, Dr Stuart Leask wrote: > >> Are there any suitable routines that perform factor analysis ofcategorical>> or mixed categorical/continuous data in R? > >In my reference books `factor analysis' is defined to be for continuous >data. There are many latent variable techniques for categorical data with >many variants on each. Which precisely did you have in mind? > >-- >Brian D. Ripley, ripley at stats.ox.ac.uk >Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ >University of Oxford, Tel: +44 1865 272861 (self) >1 South Parks Road, +44 1865 272860 (secr) >Oxford OX1 3TG, UK Fax: +44 1865 272595 > >-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.->r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html >Send "info", "help", or "[un]subscribe" >(in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch >_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._ -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Susanne Schwenke
2002-Feb-21 14:34 UTC
[R] nlme - Confidence Interval for Variance in ANOVA
Dear R-help group, I have a two-way ANOVA with two crossed random factors, no nesting. Each factor has three levels, resulting in 9 cells for the experiment. Each cell contains 10 repetitions. According to the ANOVA model I assume equal variances for all levels per factor. I would like to get REML-estimates for the variances of the two factors and moreover get confidence intervals for these estimates, so the use of the nlme-package seems to be a good idea. My problem in the first place is to formulate the model itself for the lme-function. The fixed part would at most consist of the intercept, resulting in fixed= response ~ 1 and the random part would be random = ~ a + b but I have no idea what my gouping factor there should be. Could somebody please point me in the right direction ? Sorry if this turns out to be an extremely simple question, I'm a newbie to R ... Many greetings, Susanne ---- Susanne Schwenke Epigenomics AG www.epigenomics.com Kastanienallee 24 +4930243450 10435 Berlin -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
John Fox
2002-Feb-21 16:08 UTC
[R] Re: Factor analysis of categorical or mixed categorical/continuousdata in [R]
At 11:18 AM 2/21/2002 +0000, Dr Stuart Leask wrote:>I am looking to fit one or more latent categorical variables to data that is >a mixture of categorical and continuous variables. Factor analysis would >work for continuous data, latent class analysis for categorical data. I >understand that in a package such as MPlus I could perform a single analysis >of both data types. Are there similar routines available in R?Dear Stuart, If memory serves me, a common approach is to use tetrachoric correlations (for dichotomous data), polychoric correlations (for ordered-category data), and point-biserial and polyserial correlations (for mixed data). If you want to do inference, then this approach gets complicated (requiring asymptotic sampling covariances for the correlations), but for a descriptive factor analysis, it should be reasonably straightforward. I'm not aware of any facility for calculating these kinds of correlations in R, but programming them shouldn't be too hard. I may add this at some point to the sem package. I hope that this helps, John -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Reasonably Related Threads
- Factor analysis of categorical or mixed categorical/continuous data in
- nlme - Variance Estimation
- Long time needed for "Building file list" Any suggestions ?
- scan and skip - without line breaks in the input file
- Fitting Mixture of Non-Central Student's t Distributions