sample(n) // select a random permutation from 1,...,n
sample(x) // randomly permute x
sample(x, replace=T) // a bootstrap sample
sample(x, n) // sample n items from x w/o replacement
sample(x, n, replace=T) // sample n items from x w/ replacement
sample(x, n, replace=T, prob=p)
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment