Hello I have a data set in which I am trying to compare longitudinal data from successive pregnancies.
each variable I have is coded pregnancy1 or pregnancy 2. With the exception of race/ethnicity all variables differ based on pregnancy 1 and pregnancy 2
I am trying to set up a table 1 comparing continuous, categorical and binary variables ( education, annual income, mean age, hypertension status etc) at the time points of either pregnancy 1 or pregnancy 2.
Previously I used a code for table 1 but that won't work here because I am not stratifying by a binary outcome but rather by Preg 1 vs preg 2 .
I am currently using tab or codebook command to compare each variable ex:
tab edu_1
tab edu_2
tab obese_1
tab obese_2
this gives me column percentage; but no p value comparing the two. Is there a code for this? my table one command did it automatically. I hope this makes sense. Thanks!
Related Posts with Table 1 help or test for significant difference
Dynamic GMM vs local projection vs Time-varying parameters (TVP) model selectionI am having a macro panel where I assume some sort of political ideology indicators (left -right) an…
using inlist with external dataHello, I am trying to identify how to use inlist with external data. Currently, I have two separate…
how to display distinct values of variables?I know use -distinct- command to know the number of distinct values of variables. How to list these …
Bootstrap in MontecarloI am running some issues on how to run a boostrap in a montecarlo. I need to generate 50 observation…
inquire about preserve and restoreI need to drop tons of variables in my data set for panel A task. And I need to go back to the origi…
Subscribe to:
Post Comments (Atom)
0 Response to Table 1 help or test for significant difference
Post a Comment