Dear all,
I need to make a table like this with stata. But I do not know where to start. The person who supposed to help me with this just had a baby so I have nowhere to
​​​​go. I need to make a table like this 5.3 supplementary table (see below) . This is a table with all the excluded cases and included cases and a p-value for the difference is calculated per strata. I want to do this for my dataset, which is the same as this one but I excluded a few more and have a few less (120) and 536 included cases. I did make a variable that is called missings that has the once that are missing from this dataset =1 and not missing =0 (see missings). I want to find if the excluded cases and included cases differ. How do I do go about this? I thought I had it figured out, but it added all the missings to my dataset so all the sudden I had 756 observations. I'm completely lost by now. I did not attach a label to the missings yet. Should I do this or is simply 0 or 1 enough?
This is my dataset.
------------------ copy up to and including the previous line ------------------
Listed 20 out of 536 observations

Thanks you so much for you valuable time.
Best Anna
I need to make a table like this with stata. But I do not know where to start. The person who supposed to help me with this just had a baby so I have nowhere to
​​​​go. I need to make a table like this 5.3 supplementary table (see below) . This is a table with all the excluded cases and included cases and a p-value for the difference is calculated per strata. I want to do this for my dataset, which is the same as this one but I excluded a few more and have a few less (120) and 536 included cases. I did make a variable that is called missings that has the once that are missing from this dataset =1 and not missing =0 (see missings). I want to find if the excluded cases and included cases differ. How do I do go about this? I thought I had it figured out, but it added all the missings to my dataset so all the sudden I had 756 observations. I'm completely lost by now. I did not attach a label to the missings yet. Should I do this or is simply 0 or 1 enough?
This is my dataset.
Code:
* Example generated by -dataex-. For more info, type help dataex clear input double pid float missings byte gender float bmi_cat 1001001 1 0 4 1001002 0 0 3 1001003 0 0 3 1001004 0 0 3 1001006 0 0 2 1001007 0 0 3 1001008 0 0 3 1001010 0 0 2 1001011 0 0 3 1001012 0 0 4 1001013 0 0 3 1001014 0 0 3 1001015 0 0 3 1001016 0 0 3 1001017 1 1 4 1001018 0 1 3 1001019 0 1 4 1001020 0 1 3 1001021 0 1 3 1001022 0 1 3 end label values gender sex label def sex 0 "Male", modify label def sex 1 "Female", modify label values bmi_cat bmil label def bmil 2 "Thinness", modify label def bmil 3 "Normal", modify label def bmil 4 "Overweight", modify
Listed 20 out of 536 observations
Thanks you so much for you valuable time.
Best Anna
Comment