Hi,
I would like to check the marginal effects for two different time periods, and whether there is a significant difference between the two time periods.
I checked the STATA help and they mention the following:
What do you suggest? Using a command like
or this one?
Thank you in advance.
Kind regards,
Nikos
I would like to check the marginal effects for two different time periods, and whether there is a significant difference between the two time periods.
I checked the STATA help and they mention the following:
Do not specify marginlist when you mean over() margins has the same syntax when used with derivatives of responses as when used with responses. To obtain derivatives, one specifies the dydx() option. If we wanted to examine the response variable dy/d(tmt), we would specify margins’ dydx(tmt) option. The rest of the margins command has the same syntax as ordinarily, although one tends to specify different syntactical elements. For instance, one usually does not specify a marginlist. If we typed . margins sex, dydx(tmt) we would obtain dy/d(tmt) calculated first as if everyone were male and then as if everyone were female. At the least, we would probably want to specify . margins sex, dydx(tmt) grand so as also to obtain dy/d(tmt), the overall margin, the margin with everyone having their own value of sex. Usually, however, all we want is the overall margin, and because grand is the default when the marginlist is not specified, we would just type . margins, dydx(tmt) Alternatively, if we were interested in the decomposition by sex, then rather than type margins sex, dydx(tmt), we probably want to type . margins, over(sex) dydx(tmt) This command gives us the average effect of tmt for males and again for females rather than the average effect with everyone treated as male and then again with everyone treated as female.
What do you suggest? Using a command like
Code:
margins period, dydx(*) atmeans
Code:
margins, dydx(*) over(period)
Kind regards,
Nikos
Comment