Re: [R] IMPORTANT!!!! PLEASE HELP ME

2012-11-25 Thread Rolf Turner
PLEASE remember: This list has a "no homework" policy. Students should do their own homework. cheers, Rolf Turner On 25/11/12 13:18, Pete Brecknock wrote: Jasmin wrote I try to use hansen-hurwitz and horvitz-thompson estimator.So I should generate samples which come from norma

Re: [R] IMPORTANT!!!! PLEASE HELP ME

2012-11-24 Thread Pete Brecknock
Jasmin wrote > I try to use hansen-hurwitz and horvitz-thompson estimator.So I should > generate samples which come from normal distribution (mu=50,sigma=3). I have taken the liberty of scaling the problem down to something more digestible and have changed lines 5 and 7 in your code nsamples=10 s

Re: [R] IMPORTANT!!!! PLEASE HELP ME

2012-11-24 Thread Pete Brecknock
jholtman wrote > What do you want to do with the samples after you generate them? What > are the parameters for the normal distribution? You left a lot of > information out. You can generate 500,000 numbers and then store them > in a 1x50 matrix quite easily. > > On Sat, Nov 24, 2012 at 5:0

Re: [R] IMPORTANT!!!! PLEASE HELP ME

2012-11-24 Thread chuck.01
1st. Calm down, this doesn't seem that important. Then you will need to know some base functions. see ?rnorm Doing this 10,000 times and making them of size 50 is no problem. FYI: I don't understand what "with replacement case" means; could you clarify? Jasmin wrote > Hi, > I want to gener