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)
RMSEA 90% CI using Satorra-Bentler in sem CFAI am running a CFA using sem but am having trouble figuring out the output and possibly whether ther…
How to write a command for nultiple condition with a character variable?Hi all, in my study, I want to study the subsample without observations from some countries without …
Change in a variable when we have pooled cross-sectionsHello, How can we calculate the change in a variable when its values for two consecutive years are …
Drawing a graph with insignificant*coefficient!Hi, Can we draw a graph when some of our regression coefficients show up as insignificant? Specific…
generating DHS indiciatorCan someone guide me how to generate percentage of basic and limited sanitation service for nigeria …
Subscribe to:
Post Comments (Atom)
0 Response to Produce a list of unique values (not using tab or list)
Post a Comment