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
Binary Variable GraphHi All; I need help about binaries. I reviewed the topics but i couldn't find solution. I have five…
Find out what variables in .dta file are used in .do fileI am reviewing an old project by someone who is no longer reachable. I have her .dta file with inpu…
Creating panel data from cross sectional dataHi everyone, I am trying to create a panel dataset starting from cross-sectional data. Code: * Ex…
Multitple color graph barDear Stata users, I'm trying to produce a twoway graph, plotting size effect as bar and adding conf…
Refering to factor variables post estimationDear All, I want to use lincom to estimate total effect after running a regression of the form: C…
Subscribe to:
Post Comments (Atom)
0 Response to Generating new variables, sorted from a varlist
Post a Comment