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
Question about graph bar command and how to include a second y-axis for a second variableDear Stata forum, I have a question about the graph bar command. So far, I have been using the foll…
Compare elements of locals and return distingushing elementsDear all, I have the following three locals: Code: local house "1 2 3 4" local garden "1 2 3" loc…
Create a dataset from the current datasetHello Can someone help me create a dataset from my current dataset? I have the following dataset: …
XTQREG: how to add statistics to regression (e.g. pseudo R2) and how to determine the quantile?Hi, how do I include these extra statistics in xtqreg: - I want to add a measure of fit (such as the…
How to store formatted number in a noteStataMP 15.1 on macOS Sierra I'd like to display the number of observations in a note with formatti…
Subscribe to:
Post Comments (Atom)
0 Response to Generating new variables, sorted from a varlist
Post a Comment