Hello,
I am trying to understand how binscatter plots work and I have a somewhat general question in case of panel data. For example, let the variables be a, b, and c, for the period from 1990-2020. I would like to do a binscatter of the variable a against the average value of variable b by municipality for each decade, controlling for variable c, something like this:
by municipality decade, sort: gen b_m=mean(b)
binsreg a b_m c, nbins(15) if decade==1990
Given that I want on x axis to have the average value of variable b by municipality, does it make sense to run a simple binsreg like this "binsreg a b_m c, nbins(15) if decade==1990" or do I also need to compute the average values of both of b and c variables before doing binsreg?
Thank you very much for your help.
Related Posts with Binsreg question
ICC (Intra-class correlation coefficient) vs "9% of this variation in mortality was attributable solely to the surgeon."I am trying to find out the relationship between a. the ICC for surgeons and the b. the variation du…
"Not sorted"Dear All, I have individual level panel data that includes spells, with a 6 month *follow up* period…
power analysis for modified poisson regressionHello, I am trying to determine the power of one my analyses. The outcome is binary and relative ri…
Predict based on regression modelHi, I estimated on the regression model: Code: reg lnChild lnCash lnWhite lnCash*lnWhite Based on…
Knots in Non parametric series regressionDear All, I am Maheswaran Kesavan doing masters in University college London. I am doing an Non pa…
Subscribe to:
Post Comments (Atom)
0 Response to Binsreg question
Post a Comment