Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: Add obs with values so each possible value occurs at least once


From   Jen Zhen <[email protected]>
To   [email protected]
Subject   st: Add obs with values so each possible value occurs at least once
Date   Mon, 10 Mar 2014 17:12:40 +0100

Dear listers,

I have what should be an easy question, yet I don't find the answer:

I have a dataset in which var1 takes 74 out of the 100 possible
integer values between 1 and 100 inclusive. Some of the values occur
more than once. I would like to expand the dataset such that each of
the 100 possible values occurs at least once.

How do I do that?

Thank you so much and best regards,
JZ
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index