[R] covariate selection?

Martínez Ovando Juan Carlos jcmartinez at banxico.org.mx
Wed Oct 13 00:55:58 CEST 2004


Hello Ian,

Sorry. I don't really understand your problem, which is of model selection. That's right? 

You could use some criteria based in likelihood. For instante Akaike (AIC) or Schwarz criteria (BIC), see: 

?AIC

?mle.aic

(The best model is determined minimizing AIC or BIC).

I hope this help you.

Greetings,
 
		Juan Carlos 

-----Mensaje original-----
De: Ian Fiske [mailto:ifiske at ufl.edu] 
Enviado el: Martes, 12 de Octubre de 2004 05:17 PM
Para: Martínez Ovando Juan Carlos
CC: r-help at stat.math.ethz.ch
Asunto: Re: [R] covariate selection?

Thanks Juan.  I thought that was what I was looking for, but really, I 
want to know which of the original covariates could best be used to take 
advantage of their colinearity without creating new variables.  I think 
PCA creates new variables.  SAS and SPSS can do what I'm talking about, 
but I would like to use R for this.

Thanks,
Ian



Martínez Ovando Juan Carlos wrote:

>Hello Ian,
>
>?princomp
>
>If your covariates are scalars, and the following documents:
>
>http://www.jstatsoft.org/v07/i01/drdoc.pdf
>
>http://www.bioconductor.org/workshops/Milan/PDF/Lab12.pdf
>
>
>Best wishes. 
>
>Saludos,
> 
>Juan Carlos Martínez Ovando
>Banco de México
>Av. 5 de Mayo No. 18
>Piso 5 Sección D
>Col. Centro
>06059  México, D. F.
>Tel. +52 55 52.37.20.00 ext. 3594
>Fax. +52 55 52.37.27.03
>e-mail: jcmartinez at banxico.org.mx
> 
>
>-----Mensaje original-----
>De: Ian Fiske [mailto:ifiske at ufl.edu] 
>Enviado el: Martes, 12 de Octubre de 2004 04:08 PM
>Para: r-help at stat.math.ethz.ch
>Asunto: [R] covariate selection?
>
>Hello,
>
>I am hoping someone can help me with the following multivariate issue:  
>I have a model consisting of about 50 covariates.  I would like to 
>reduce this to about 5 covariate for the reduced model by combining 
>cofactors that are strongly correlated.  Is there a package or function 
>that would help me with this in R?  I appreciate any suggestions.
>
>Thanks,
>Ian
>
>______________________________________________
>R-help at stat.math.ethz.ch mailing list
>https://stat.ethz.ch/mailman/listinfo/r-help
>PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
>
>
>  
>




More information about the R-help mailing list