Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: Censored regression


From   Marcello Pagano <[email protected]>
To   [email protected]
Subject   st: Censored regression
Date   Fri, 19 Sep 2003 17:33:08 -0400

Jisheng is having trouble posting this:
m.p.


Dear all,

For the attached data set, I fitted a censored regression, where
treatment=1 represent SBP is not observed, but actually >= the censored
(listed) value. Following commands are used to calculate the residual,
for which I hope that on average they are less than 0 for individuals
with treatment==1, because the observed (listed) value is rightly
censored and are expected to be less than the true value, and hence,
less than the predicted value if the model is OK. But, I obtained a mean
of 3.55, which is significantly higher than 0. WHY?

With thanks,
Jisheng.

. cnreg sbp age, censor(treatment)
. predict y_sbp
. gen r_sbp = sbp - y_sbp
. sum r_sbp if treatment==1

    Variable |       Obs        Mean    Std. Dev.       Min        Max
-------------+--------------------------------------------------------
       r_sbp |       126    3.549016    16.92667  -40.63338   46.86662


Attachment: temp.dta
Description: Binary data




© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index