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
using asdoc command when we have loop commandhello, I use this code in terms of the effect the tariff on output , trade balance, exchange rate. I…
Propensity Score Matching Panel DataHello, I am looking to analyse the change (if any) in the political opinion of an individual after t…
graph editingI created the attached data file from data on the web. I typed:: hbar pctdiff,l(name) using Nick C…
Wrong observation number and cluster numberHi, I am currently puzzled by having a different observation and cluster count in the regression mo…
xtreg adjusted for heteroskedasticiy and firm-level clusteringHello, I have unbalanced panel data (74 companies with a total of 800 observations over 18 years). …
Subscribe to:
Post Comments (Atom)
0 Response to Generate random value stata
Post a Comment