Hello,
I'm attempting to calculate the marginal effects and their standard errors after a logit estimation including an interaction and a quadratic term (both using the same continuous variable). However, this is also part of a mediated estimation where the effect of the same variable used in the quadratic and interaction term is being tested indirectly through another control variable. Margins (as far as I know) doesn't do this, so I'm attempting to essentially redo the output of the margins command manually similar to what I've found here:
https://www.statalist.org/forums/for...argins-command
Only altering the Jacobian and average marginal effect to account for this mediated effect. I've figured out how to reproduce the marginal effect of the output for the specification with the quadratic and interaction term - and therefore can calculate the average marginal effect including the mediated effect, but I'm stuck on the Jacobian, leaving me unable to figure out standard errors. If someone one could help me by explaining how the process in the link is carried out when an interaction term is included I'd much appreciate it.
Thanks,
Jake
I'm attempting to calculate the marginal effects and their standard errors after a logit estimation including an interaction and a quadratic term (both using the same continuous variable). However, this is also part of a mediated estimation where the effect of the same variable used in the quadratic and interaction term is being tested indirectly through another control variable. Margins (as far as I know) doesn't do this, so I'm attempting to essentially redo the output of the margins command manually similar to what I've found here:
https://www.statalist.org/forums/for...argins-command
Only altering the Jacobian and average marginal effect to account for this mediated effect. I've figured out how to reproduce the marginal effect of the output for the specification with the quadratic and interaction term - and therefore can calculate the average marginal effect including the mediated effect, but I'm stuck on the Jacobian, leaving me unable to figure out standard errors. If someone one could help me by explaining how the process in the link is carried out when an interaction term is included I'd much appreciate it.
Thanks,
Jake
Comment