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: Creating a dummy dataset in Stata


From   Amal Khanolkar <[email protected]>
To   "[email protected]" <[email protected]>
Subject   st: Creating a dummy dataset in Stata
Date   Mon, 8 Jul 2013 13:50:24 +0000

Hi,

I would like to create a dummy dataset in Stata. Say I would like to have a dataset with 4 variables as follows:


1. ID
2. Relative risks
3. Corresponding 95% CI's for RRs
4. A group variable that groups 3 RRs together consecutively from top to bottom.

I know I have 66 IDs and 66 RRs and thus 22 groups (three RRs in each group).

I start with setting the number of observations to 66:

set obs 66

I now have no idea how to enter the RR, 95% CI and the group number for each observation.

Any tips?

Thanks ahead,



/Amal 
*
*   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