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
When export to Excel, how to exclude one variable?I use manual item "Data to Excel Spreadsheet" from File---Export. The codes are: Code: export excel…
Effect magnitudes interpretationDear all, I have a panel FE model, dependent variable (Y) is measured in % and also my independent v…
keep if(varname) ==r(max)Can someone explain the last two commands: I understand that r(max) or r(min) is to be used after th…
Interpretation Panel fixed effect with log dependent variableDear Stata users, I am running a fixed effect model on household data with log household per capita…
Difference in Difference with only three clusters (one untreated, two treated)Hi there! I am currently working on my dissertation studying how a school-based initiative affects …
Subscribe to:
Post Comments (Atom)
0 Response to Table 1 help or test for significant difference
Post a Comment