Hello everyone,
I have a question regarding a Stata coefficient.
Our professor told us to set obs = 100, generate 2 normally distributed variables (x with (1,2) and u with (0,1)) and y which equals y = 2 - 0.5*x + u. Then to regress y on x.
Now Stata gives us a biased coefficient, which is different every time we change the observations (thus not consistent).
We do not understand why it is not providing us with the correct coefficient. It must be somehow biased, but why??
I would really appreciate every help!
Thanks so much in advance,
Maja
Related Posts with Stata calculating biased coefficient?
Mixlogit - Share of preferences / market sharesDear Statalist; I am trying to learn the mixed logit model. To do so, I am trying to replicate the …
Oneway plot colors and value calloutHi everyone, I am trying to create a simple oneway plot with distribution of values for different i…
Training Course in Data Management and Analysis with STATACourse Title: Quantitative Data Management and Analysis with STATA Course Click to view course con…
Difference between estimated coefficientsDear Colleagues I'm running a mediation analysis in which I run two OLS regressions. They are simil…
Find min/max*length of variableDearest StataList I have had a problem when trying to find the maximum and minimum length of every …
Subscribe to:
Post Comments (Atom)
0 Response to Stata calculating biased coefficient?
Post a Comment