[R] bootstrap help

casperyc casperyc at hotmail.co.uk
Sun Dec 6 22:06:01 CET 2009


Hi,

I have 49 pairs in my data.frame 'data'

x	y
76	80
138	143
67	67
29	50
381	464
23	48
37	63
120	115

...  ...

how do I get a bootstrap sample of size n=50?

i have tried 
sample(data,size=50,replace=TRUE)
and
sample(data,replace=TRUE)

both didnt seem to work (the latter one only return me with 49 sample)

Thanks.

casper

-- 
View this message in context: http://n4.nabble.com/bootstrap-help-tp949807p949807.html
Sent from the R help mailing list archive at Nabble.com.




More information about the R-help mailing list