Hi
I have two queries relating to the use of table1_mc:
1)
I would like to create a table1 describing rates of cardiac interventions (ECHO, angiography, PCI, CABG) stratified by both stage of chronic kidney disease (ckd_stage) and heart attack type (acuteMI_type). My current attempt is below, but STATA reports that I am specifying too many variables within my "by" command (r103). Is there a way to get around this?
table1_mc, by(ckd_stage acuteMI_type) vars(echo bin %4.0f\ angiogram bin %4.0f\ pci bin %4.0f\ cabg bin %4.0f) nospace onecol missing test saving("table 3.xlsx", replace)
2) I have also tried to generate a column for overall missingness of each variable (see code above) but I don't seem to get a result for this. Could someone possibly suggest where I'm going wrong?
Thankyou
Related Posts with "by" and missingness in table1_mc
Replacing variables with loopsreplace c_q33_1=.a if c_q29_1 ==.a replace c_q33_2=.a if c_q29_2 ==.a replace c_q33_3=.a if c_q29_3 …
xtset with unbalanced nested panel dataHello I am trying to perform a fixed effect analysis on student achievement gain scores. My data is …
loop questionHi all, I am new on Stata so my knowledge is limited. I have a variable that indicates whether the …
Lagged treatment effect in DD model with multiple treatment periodsDear All, I have a question about how to include lagged treatment effect in a Difference-in-Differen…
error message in xtglsWhen I ran the xtgls regression: Code: xtgls dep var, covariate 1 covariate 2 .....covariate n, cor…
Subscribe to:
Post Comments (Atom)
0 Response to "by" and missingness in table1_mc
Post a Comment