I've been puzzling with this problem for hours, but I can't figure it out. Per observation, I need to generate 5 new variables, with the values from 5 existing variables sorted from lowest to highest.
For example, the shorter existing data set should become the larger one
Array
Array
How do I do this?
Thank you in advance.
Related Posts with Generating new variables, sorted from a varlist
Converting panel data from WEAKLY balanced to STRONGLY balanced (Bacon decomposition)Hi Statalisters, I am working on the Bacon decomposition (using bacondecomp command), which require…
Pause in results windowI use Stata/IC 14.2 for Mac (64-bit Intel). I'm looking for a solution where Stata can execute comma…
Results stop by showing (more)...I use Stata/IC 14.2 for Mac (64-bit Intel). I'm looking for a solution where Stata can execute comma…
Time series regression using weighted combination of lagsI am running a regression of the form: Code: reg Y ibn.dow#c.l(12).pc1 ibn.dow , base nocons wher…
Test of Mean Differences by Categorical VariableHello Stata users, I would like to perform a test of mean differences between two independent varia…
Subscribe to:
Post Comments (Atom)
0 Response to Generating new variables, sorted from a varlist
Post a Comment