Hi All,
I'm trying to do a calculation for an average rate and a marginal rate using state data. Since the data varies by day of the week, I first want to remove the variation from each day of the week and mean difference so that Wednesday is the omitted variable.
reg dependant i.dow
residuals dependant i.dow
gen intercept = _b[_cons]
gen dependant_2 = residual + intercept
This should give me each dependant smoothed per day of the week. However, I don't think this is the way to mean difference with an omitted category. Can someone please help me!
Miranda
Related Posts with Mean difference with omitted variable
Creating 'household income per capita' variableDear all I am using the South African National Income Dynamics Survey (NIDs) and have successively …
Query about r(5); errorI am following certain accounting models to estimate measures of financial reporting quality. I have…
cox proportional hazard model with log-transformed variablesHi, I ran a cox proportional hazard model to predict cumulative baseline hazard and xbeta. My code …
Matching options using psmatch2Hi, I am performing propensity score matching using the "psmatch2" command (and, in particular, usi…
Using Matrix commandDear Users, I have two freq tables as follows: Table 1 Code: pml | Freq. Per…
Subscribe to:
Post Comments (Atom)
0 Response to Mean difference with omitted variable
Post a Comment