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
How to estimate the marital status (Married and widowed) using the information on the Relationship of person to household headHello, everyone I am having a cross-sectional data on the relationship of person to household head. …
Plot number of events per month, over time (simple)Hi Folks. Sorry Stata beginner here, but wondered if others had a good approach to what I am trying …
conformability 503 error in tab commandHello, I am trying to do chi2 tests and store the chi2, p, and the frequencies with the following co…
Wilcoxon Rank Sum Test between countriesHello everyone, I was talking to my supervisor and he asked me to do a Wilxoxon ranksum test for my…
mean comparison for panel dataDear All, I have a panel data with three waves and i am comparing the mean difference (mean comparis…
Subscribe to:
Post Comments (Atom)
0 Response to Mean difference with omitted variable
Post a Comment