Here's a follow-up question. Suppose I wish to add covariates to my APC analysis and calculate the probabilities for each age, period and cohort category. Start with one categorical (marital status 0/1) and one continuous covariate (income). I could multiply the coefficient for income by its mean (although I'm not sure if it should be the overall mean or the group mean), but it's not clear what to do with the marriage variable. Since it's dichotomous, does the coefficient represent the marginal effect? That seems to be what is suggested here: http://stats.stackexchange.com/quest...arginal-effect. Would the following pseudo-code be accurate (assuming average income=30000)?
A problem with such an approach is that it could get tedious if one adds another covariate such as race that has more than two categories.It appears that recoding the categories and averaging over the results is necessary, but I'm not sure how to do that.
I think a deeper question concerns whether it is better to compute marginal effects at the mean (MEM) as above, or average marginal effects (AME). My understanding is that AME is preferred. Couldn't one simply compute the individual probabilities within each age, period and cohort category for each case using the values of the covariates for thse cases? Averaging within the APC groups (say, using summarize) would yield the desired probabilities; however, I'm not sure that obtains the correct standard errors. Any opinions on the best course here?
Code:
nlcom (p: invlogit(_b[_cons]+_b[age_0]*1+_b[mart]*1+_b[inc]*30000))
I think a deeper question concerns whether it is better to compute marginal effects at the mean (MEM) as above, or average marginal effects (AME). My understanding is that AME is preferred. Couldn't one simply compute the individual probabilities within each age, period and cohort category for each case using the values of the covariates for thse cases? Averaging within the APC groups (say, using summarize) would yield the desired probabilities; however, I'm not sure that obtains the correct standard errors. Any opinions on the best course here?
Comment