[R] Generation of correlated variables

Rui Barradas rui1174 at sapo.pt
Thu Mar 15 18:54:32 CET 2012


Hello,

>
> However, I would like that have all my "regressors" to be orthogonal (i.e.
> no correlation among them.
>

?poly
poly(cbind(x1, x2, x3), degree=1)

Hope this helps,

Rui Barradas


--
View this message in context: http://r.789695.n4.nabble.com/Generation-of-correlated-variables-tp4475799p4475821.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list