I used %margins macro to estimate predictive margins for 10 year survival after a particular surgery. I wanted to estimate the probability of survival for patients with different variables (i.e. age, dementia, ASA comorbidity score, etc). I am wondering - for variables that are not included in margins= or at= lines, but are included in the model itself, does the macro use the average predictions over the sample distribution by default? If not, is this something that I can set? As an example, I have (simplified version of coding): %margins (data=x, class = age sex dementia rural frailty ltc asa chf copd, response = alive, roptions = event='1', model = age sex dementia rural frailty ltc asa chf copd, dist = binomial, margins = age, at = sex dementia, options = cl) In this case, is the model using the average value/average event probability (in case of binary) for rural, frailty, asa, chf, and copd? If so, is it using the average for the entire cohort, or the average for each level of the margins=/at= variables that I have specified? Ideally, I would like the latter, but I'm not sure if this is what I'm actually estimating. Thank you so much for your help, and apologies in advance for my lack of knowledge on this matter.
... View more