Hello again,

I got it with dudi.mix included in ade4 library that Mark told.

Thank you very much to all!
J. Andres



On 5/24/07, Mark Difford <[EMAIL PROTECTED]> wrote:
>
>
> Hi J. Andres,
>
> You are probably better off using the ade4 package, which has two
> functions
> that will do exactly what you want, i.e. a PCA using mixed quantitative
> and
> categorical variables:
>
> ## You will need to download ade4 first
> library(ade4)
> ?dudi.hillsmith
> ?dudi.mix
>
> Regards,
> Mark Difford.
>
>
>
> J.Andrés Martínez wrote:
> >
> > Hello everybody,
> >
> > I am a new R user. At current moment I need to do a Principal Components
> > Analysis with a table who contain mixed variables (categorical and
> > numerical). There is some function available in R for transform these
> > variables?
> >
> > For example: I need transform the categorical variable X who has 3
> classes
> > in 2 numerical variables with 0s and 1s.
> >
> > Thank you very much,
> > J. Andres
> >
> >       [[alternative HTML version deleted]]
> >
> > ______________________________________________
> > [email protected] mailing list
> > https://stat.ethz.ch/mailman/listinfo/r-help
> > PLEASE do read the posting guide
> > http://www.R-project.org/posting-guide.html
> > and provide commented, minimal, self-contained, reproducible code.
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/Function-to-convert-categorical-variable-in-numerical-tf3808888.html#a10780667
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> [email protected] mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>

        [[alternative HTML version deleted]]

______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to