Skip to content

ordinal data simulation

1 message · David Winsemius

#
On Dec 1, 2011, at 2:06 AM, yuying shi wrote:

            
That's not a good description of what they are doing.
One way to generate a random categorical variable constrained to three  
values would just be to take a uniform variate on the interval [0,1]  
and classify it based on whether which of the three segments it is in  
for 0 < a < b < 1. This really is not an appropriate question for  
rhelp so you are advised to submit further such questions somewhere  
they are solicited such as statsexchange.com.