Stata Blogger?

Are you a Stata blogger? Join the aggregator!

Checking for differences in estimates by group

Stata do file* Imagine that you have two groups in your sample and you are wondering if both groups respond the explanatory variables in the same manner.clearset obs 1000gen group=rbinomial(1,.5)gen x = rnormal()gen y = 2 + 3*x + rnormal()*2 if group==…

Continue reading Checking for differences in estimates by group

Measurement Error

Original Code* It is well known that measurement error causes attenuation bias in regression analysis estimators.* This fact appeared in the literature as early at Spearman (1904).* Attenuation bias also known as regression dilution is the phenomenon w…

Continue reading Measurement Error