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
Some important statistics at the bottom of x axisI want some statistics that correspond to x-axis and I want the Y axis value to be computed and appe…
count if variables meet conditionsHello everyone, I have a data on average sales of corporation for the past 6 months. Below you can s…
How to loop on all CSV files in several folders and create a separate dta filesHi , I am wondering How to loop on all CSV files in several folders and create a separate dta files …
Gen total var for profitability from one year before to two years after given dateDear all, I am trying to sum the profitability of a given target firm for the period year-1 to year…
Date lable of twoway graphHi together, i use stata 16.0 and have a panel data set including banks (unique identifier is the…
Subscribe to:
Post Comments (Atom)
0 Response to Mean difference with omitted variable
Post a Comment