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)
Which model would you recommend to use? Panel DataHi all, I do my University work and need your help. I have a panel data and want to know how 10 inde…
How to test whether difference in differences is statistically significant without regression?Dear all, I have two groups and have tested whether the mean of my variable of interest is signific…
LabelsHello, i'm sure my problem is very basic, but I couldn't find an answer in past topics. An example …
Weighted adjacency matrixHi all, I am struggling with something similar to the original poster. I am using Stata 15 and have …
-xtgls- vs -xtscc-?I am analysing a panel data with n=19 (ID/panel variable i.e. countries) and T=44 (time variable) to…
Subscribe to:
Post Comments (Atom)
0 Response to Produce a list of unique values (not using tab or list)
Post a Comment