Dear collegues,
I'm working on a consumer survey. In this survey, we asked to consumers to rank their three preferred labelling schemes among a pool of ten alternatives.
So, for each consumers, we have his rank 1, rank 2 and rank 3. In the exemple provide below, the consumer 1 ranked the alternative 7 at rank1, the alternative 5 at rank 2 and the alternative 4 at rank 3.
Array
My question is: Do you know how I can generate random variable (value between 1 and 10) without taking the values taken in the previous rows?
For exemple, here, i want to generate a value for the rank 4 between 1 and 10 without taking the value 7, 5 and 2. For the rank 5, generate value between 1 and 10 without taking the value 7,5, 2 and the one generate for rank 4 etc.
I hope I have made myself clear I remain available for any further informations,
Regards
Jean-François DEWALS
Related Posts with Generate random value stata
Bar graph with multiple means of variablesHello! I want to create a bar graph with the means of several variables on the x axis. Any idea how…
Quadratic term and concave relationship thresholdHello everyone, I am exploring whether the hypothesis that above a certain threshold financial dept…
dtalink vs reclink2 vs matchitHello, I've tried to tag this topic on an older thread, but haven't gotten any responses, so was try…
Missing values in snapspan command @StephenJenkinsDear Stephen Jenkins, I'm following your Survival Analysis guideline (https://www.iser.essex.ac.uk/…
Pooled OLS Firm effect vs Industry EffectHello I have explored this forum for the question of firm vs industry fixed effect. But they always…
Subscribe to:
Post Comments (Atom)
0 Response to Generate random value stata
Post a Comment