I want to have a "uniform" kind distribution. When I used sample function I got almost twice many zeros compared to other numbers. What's wrong with my command ?
temp <-sample(0:12, 2000, replace=T,prob=(rep(1/13,13))) hist(temp)
Thanks in advance,
Taka,
______________________________________________ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html