Dear all,
I am wondering how to compute the marginal effects of a factor variable if the number of observations in each level have changed. For example, let us use the “auto.dta” as the example, and the current observation in each level of rep78 lists as follows:
Array
After running a regression: regress mpg i.rep78, its results are as belows:
Array
Then, I am curious about whether it is possible to compute the marginal effects of each level of rep78 when the number of observations in each level have changed. Let us suppose, the number of observations in level 1-level 5 has changed to the number of observations in level 1-level 5 has changed to 8, 5, 20, 16, 20, respectively.
C-
Pengcheng
Related Posts with Questions on computing the marginal effects of the factor variable
please help me, what is the best model or method of estimation?hello , i have panel data unbalanced N=25 T=9 for 20 cross-section and 7 for 5 cross-section all obs…
xtpcse regression with fixed effectsHello, I have a panel of 50 countries over 25 years and I would like to perform a regression with pa…
JointPoint / test of secular trendsDear all, I've calcuted incidence rates (using Poisson with offset[logtime] and 1-year age bands and…
Changing lasso settingsDear fellow Stata users, I am running lasso regressions using such routines as lasso2 and cvlasso. …
Stacked bar graph per groupsDear all, I would like to realize a stacked graph bar showing the different values of each category…
Subscribe to:
Post Comments (Atom)
0 Response to Questions on computing the marginal effects of the factor variable
Post a Comment