Mike
I split the answer into three parts:
A. Random sampling
To random select 500 from 5000, you can use:> data5000 = rnorm(5000,200,10)
# make some data
> s = sample(data5000,500)
> head(s)
[1] 201.7548 167.5157 106.1064 194.6629 165.9758 187.1152
B. Repeated Random Sampling
Its not clear with
I was wondering if anyone could help me with a problem. I need to randomly
select, say 500 subjects from the 5000 cases I have and then need to run a
test to create 500 sample means and graph the means in a histogram. Does
anyone know how to do this. I'm not that familiar with R so please be
pa
2 matches
Mail list logo