Suppose I have:
where a and b are continuous.
I can run
and
to obtain adjusted predictions at selected values of a at the mean of b and selected values of b at the mean of a (I think this is correct).
Is there some way to do this simultaneously? I'm saving post-estimation results from margins and I think I'll have to run my regression again unless perhaps I can use preserve and restore. Any advice appreciated.
Code:
logistic y a b
I can run
Code:
margins, at(a==10 20 30)) atmeans
Code:
margins, at(b==(50 60 70)) atmeans
Is there some way to do this simultaneously? I'm saving post-estimation results from margins and I think I'll have to run my regression again unless perhaps I can use preserve and restore. Any advice appreciated.
Comment