Dear Statalists,
The following syntax gives us the standard error of prediction for each observation.
But how can we replicate this stdp by hand?
For example, if the estimated results are as follows:
y Coef. Std.Err. z P>|z| 95%CI
x1 0.501 0.012 40.99 0.000 0.477 0.525
cut1 2.635 0.090
cut2 4.482 0.092
cut3 5.378 0.094
cut4 6.219 0.097
We can replicate
by typing
Can we do such a thing with stdp? I mean, can we calculate manually stdp for each case?
Thank you in advance,
DS
The following syntax gives us the standard error of prediction for each observation.
Code:
ologit y x1 predict stdp, stdp
For example, if the estimated results are as follows:
y Coef. Std.Err. z P>|z| 95%CI
x1 0.501 0.012 40.99 0.000 0.477 0.525
cut1 2.635 0.090
cut2 4.482 0.092
cut3 5.378 0.094
cut4 6.219 0.097
We can replicate
Code:
predict xb, xb
Code:
gen xb_replicate = 0.501 * x1
Thank you in advance,
DS
Comment