[R] simulating Likert-type data

Jim Lemon jim at bitwrit.com.au
Mon Jun 15 13:47:27 CEST 2009


Oops, sorry. Sloppy translation from the R window
>
> sample(-4:4,50,TRUE,prob=c(pnorm(-4:2,2,0.15)pnorm(c(3,4),2,0.15,lower.tail=FALSE)) 
>

Jim




More information about the R-help mailing list