aldoushuxle...@gmail.com
> Sent: Thu, 12 Jul 2012 13:55:04 +0100
> To: r-help@r-project.org
> Subject: [R] A simple simulation question
>
> Hi!
>
> I would like to post the following question:
>
> I was trying to figure out how to do the simulation shown in Fig 10.6 of
&g
Hi Manning,
There are two obvious mistakes:
- close the brackets for replicate() and
- do the things in the correct order
replicate(100, {
x=rep(1:10,10) ## first define x
y=rnorm(100,x,5) ## and then y because it depends on x
plot(y~x) ## then plot, because it depends on x a
Hi!
I would like to post the following question:
I was trying to figure out how to do the simulation shown in Fig 10.6 of
John Verzani's book 'Using R for Intro Statistics'. It is on page 290, with
a description on the previous page. It seems like a simple thing... Just
needing to duplicate a pro
3 matches
Mail list logo