n...@r-project.org [mailto:r-help-boun...@r-
> project.org] On Behalf Of June Kim
> Sent: Thursday, March 05, 2009 4:47 AM
> To: r-help@r-project.org
> Subject: [R] a few scatter plots for a specific correlation value
>
> Hello,
>
> Is there a simple way to draw a few rand
On 3/5/2009 6:46 AM, June Kim wrote:
> Hello,
>
> Is there a simple way to draw a few random sample scatter plots from a
> given specific correlation coefficient(say, 0.18)?
scatter <- function(n=100, r=.18){
require(MASS)
mymat <- mvrnorm(n, mu=c(0,0), Sigma=matrix(c(1,r,r,1), ncol=2),
empirical
Hello,
Is there a simple way to draw a few random sample scatter plots from a
given specific correlation coefficient(say, 0.18)?
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://ww
3 matches
Mail list logo