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. ______________________________________________ R-help@r-project.org 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.