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
Latent class analysis - constraining categorical variablesHi Statalist! I am trying to perform a latent class analysis and I am very new to this method, so I…
IPTW - strategiesHi everyone, I'm evaluating whether increased dosage (number of completed sessions) of an behaviour…
Loops to make variables compatibleHi, I have a variable which has been coded differently in two datasets. (old one for year 2000 and n…
Testing significance for Alphas CAPMHello everybody, I have calculated monthly alphas and betas for monthly fund data from different po…
Survey data- Pool Cross Sectional data with weights- What to do with weights?Dear all, I have a pooled cross sectional data ( weakly balanced, 9 different years wealth and inco…
Subscribe to:
Post Comments (Atom)
0 Response to Questions on computing the marginal effects of the factor variable
Post a Comment