[R] Problems creating a random sample
Chong Gu
chong at stat.purdue.edu
Wed Jan 12 17:00:33 CET 2000
Date: Wed, 12 Jan 2000 09:44:38 -0500
From: Chong Gu <chong at stat.purdue.edu>
CC: r-help at stat.math.ethz.ch
Sender: owner-r-help at stat.math.ethz.ch
Precedence: bulk
covsqrt<-chol(matrix(c(1,.95,.95,1),2,2))
mvnorm<-matrix(rnorm(500),250,2)%*%covsqrt+c(-1,1)
Chong
Sorry, a mistake here. The second line should be
mvnorm<-t(t(matrix(rnorm(500),250,2)%*%covsqrt)+c(-1,1))
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
More information about the R-help
mailing list