I am wondering if there is a way to ask Stata to produce a list of a variables unique values. For example, if I have a variable year that has ranges from 1750 to 2000, is there a way to ask Stata to produce a simple list of the variable's unique values in the output window? So, it would look like "1750 1765 1766 1770 , , , 1996 1997 1998 1999 2000." I want to copy paste this list into another document, so I do not want to generate the unique values using tab or list. Any ideas?
Related Posts with Produce a list of unique values (not using tab or list)
descriptive statics: change the N from days to monthsHi, I'm trying to replicate the descriptive statics of a paper. The N of the descriptive statics is…
loop over nested macroI want to plot many two-way plots, therefore I have many pairs of X's and Y's. I want to use macro …
Correlation of the change of the current and the previous variable (autocorrelation)Hi, I am trying to find the auto correlation of current earnings change and past earnings change, bu…
Multivariate logistic regressioncode for Multivariate analysis …
foreach loop with fe (fixed effects) and constraintsHi I want to run fixed effects regression together with some restrictions(constraints) for 250 cros…
Subscribe to:
Post Comments (Atom)
0 Response to Produce a list of unique values (not using tab or list)
Post a Comment