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
oaxaca_riffDear members, I am trying to estimate productivity/yield gap between men and women using oaxaca_rif.…
Mata run-time error r(3001)Hello, I use Stata/IC 15.1. I can run regressions with it but when I try to get summary statistics …
The difference between Run and Do icon in do-file toolbar?What's the difference? I use Mac. …
Panel data with repeated time values within panel r(451); due to multiple directorshipsDear all, I am writing my Master's thesis in Economics, and I am working on a data set on board of …
including time dummy variables make all other variables insignificantDear Statalist, I am working on bilateral remittances data over the period 2011-2017 for a set of d…
Subscribe to:
Post Comments (Atom)
0 Response to Questions on computing the marginal effects of the factor variable
Post a Comment