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
Random slopes for participants in a crossed random effects model with categorical outcomesI've got a mixed effects model with both crossed and nested random effects. The data concern a serie…
Aggregating observations for different variables based on an IDHi there, I have a dataset on ownership concetration for various firms with roughly 490000 observat…
Getting results for a categorical variable with eststo and mi dataDear all, I am working with mi data and plan to use "coefplot". Therefor I want to save results in …
Keep font size fixed when switching displays?Stata (15.1 MP, Win 10 64) on my laptop has started changing font size wildly when switching between…
spmap: several observations per identifier; id() does not uniquely identify the observations;Hi, I am currently trying to plot a map with several observations for each district (polygon, I gue…
Subscribe to:
Post Comments (Atom)
0 Response to "by" and missingness in table1_mc
Post a Comment