I would like to -collect- some -margins- and present them in a clear (and good-looking) table. The margins command below is used after a conditional logit model. The variables PeerInv, CT and HCT are continuous. As shown in the call, -margins- estimates average marginal effects (AMEs) for PeerInv at different levels of CT and HCT.
What I'd like to accomplish is (conceptually) fairly simple: create a table with PeerInv AMEs, at low, mean, and high values of CT (on the rows) and low and high values of HCT (on the columns). I thought that one of the following -collect layout- commands would have done the job, but neither of them worked - I get the message "Your layout specification does not identify any items."
Any help is greatly appreciated.
Code:
collect: margins, dydx(PeerInv) at(CT=($CT_low $CT_mean $CT_high) HCT=($HCT_low $HCT_high)) post
Code:
collect layout (CT) (HCT) (result[_r_b]) collect layout (CT[$CT_low $CT_mean $CT_high]) (HCT[$HCT_low $HCT_high]) (result[_r_b])
Comment