Re: [R] pca analysis: extract rotated scores?

2010-12-01 Thread He Zhang
Hi, I am also doing PCA. Is the following right for extracting the scores? library(psych) pca<-principal(data,nfactors=,rotate="varimax",scores=T) pca$loadings pca$score Best regards, He On Tue, Nov 30, 2010 at 10:22 AM, Liviu Andronic wrote: > Dear all > I'm unable to find an example of extra

Re: [R] Evaluation of survival analysis

2010-11-30 Thread He Zhang
On Tue, Nov 30, 2010 at 1:18 AM, Mike Marchywka wrote: > > > Hello Mike, > Thank you very much for your reply and help. May i describe the analysis more clearly? My data is ecology data and my task is to 1) relate the 8 candidate (life history) varaibles with the lifespan of each subject and 2) u

[R] Evaluation of survival analysis

2010-11-30 Thread He Zhang
-- Forwarded message -- From: He Zhang Date: Tue, Nov 30, 2010 at 11:26 AM Subject: Re: [R] Evaluation of survival analysis To: Mike Marchywka Cc: r-help@r-project.org On Tue, Nov 30, 2010 at 1:18 AM, Mike Marchywka wrote: > > > Hello Mike, > Thank you very m

[R] Evaluation of survival analysis

2010-11-29 Thread He Zhang
Dear all, May I ask is there any functions in R to evaluate the fitness of "coxph" and "survreg" in survival analysis, please? For example, the results from Cox regression and Parametric survival analysis are shown below. Which method is prefered and how to see that / how to compare the methods?