Re: [R] Genrating Ordinal Responses in R

2015-02-14 Thread arnabkm2007
Thank you very much JS Huang. It helps. Thanks & Regards, Arnab Arnab Kumar Maity Graduate Teaching Assistant Division of Statistics Northern Illinois University DeKalb, IL 60115 Email: ma...@math.niu.edu Ph: 779-777-3428 On Fri, Feb 13, 2015 at 5:03 PM, JS Huang [via R] < ml-node+s789695n

Re: [R] Genrating Ordinal Responses in R

2015-02-14 Thread JS Huang
Hi, Here assume there are four elements in the ordinal set y and take a random sample of size 10 according to the cumulative distribution given, or probability distribution p below. > y <- c(levels = c("First", "Second", "Third", "Fourth")) > y levels1 levels2 levels3 levels4 "First" "Se