Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Conditional expectation of errors (residuals) from probit regression

    Dear All, How can I obtain the (conditional) residuals in (3) below (of course, starting from equation (1))?
    Click image for larger version

Name:	Wang2011_Article_TheAsymmetricInformationProble 7.png
Views:	1
Size:	32.6 KB
ID:	1662304


    I have attached a dataset (from my friend) here temp.dta, where the (binary) dependent variable is "cov_h" (similar to cancer in (1) above), along with two explanatory variables "risk_cancer" and "agent". Any suggestions are highly appreciated.
    Ho-Chuan (River) Huang
    Stata 17.0, MP(4)

  • #2
    The first 200 observations are:
    Code:
    * Example generated by -dataex-. For more info, type help dataex
    clear
    input float cov_h double risk_cancer float agent
    1 0 0
    1 0 0
    0 0 0
    1 0 0
    0 0 0
    1 0 0
    1 0 0
    0 0 0
    0 0 0
    0 0 0
    1 0 0
    0 0 0
    1 0 0
    1 0 0
    1 0 1
    0 0 0
    0 0 0
    1 0 0
    0 0 0
    0 0 0
    1 0 0
    0 0 0
    0 0 0
    1 0 0
    0 0 0
    0 0 0
    1 0 0
    0 0 0
    1 0 0
    0 0 0
    0 0 0
    1 0 0
    0 1 0
    0 0 0
    0 0 0
    0 0 0
    1 0 0
    1 0 0
    1 0 0
    1 0 0
    1 0 0
    0 0 0
    0 0 1
    1 0 0
    1 0 0
    1 0 0
    1 0 0
    0 0 0
    0 0 1
    1 0 0
    1 0 0
    1 0 0
    1 0 0
    0 1 0
    1 0 0
    0 0 1
    1 0 0
    0 0 0
    0 0 0
    1 0 0
    0 0 0
    0 0 0
    0 0 0
    0 0 0
    0 0 0
    1 0 0
    1 0 0
    1 0 0
    0 1 1
    0 0 0
    0 0 0
    0 0 0
    1 0 0
    0 0 0
    0 0 0
    1 0 0
    1 0 0
    0 0 0
    1 0 0
    0 0 0
    0 0 0
    1 0 0
    0 0 0
    0 0 0
    0 0 0
    1 0 0
    1 0 0
    1 0 0
    1 0 0
    1 0 0
    0 1 0
    0 0 0
    1 0 0
    1 0 0
    0 0 0
    0 0 0
    0 0 0
    0 0 0
    0 0 0
    0 1 0
    0 0 0
    0 0 0
    0 0 0
    1 0 0
    1 0 0
    1 0 0
    0 0 0
    0 0 0
    0 0 0
    0 0 0
    1 0 0
    0 0 0
    1 0 0
    1 0 0
    0 0 0
    0 0 0
    1 0 0
    1 0 0
    1 0 0
    1 0 0
    1 0 0
    1 0 0
    1 0 0
    1 0 0
    0 0 0
    0 0 0
    0 0 0
    1 0 0
    0 0 0
    0 0 0
    0 0 0
    0 0 0
    1 0 0
    1 0 0
    0 0 0
    0 0 0
    1 0 0
    1 0 0
    0 0 0
    1 0 0
    0 0 0
    1 0 0
    0 0 0
    1 0 0
    0 0 0
    1 0 0
    0 0 0
    1 0 0
    0 0 0
    1 0 0
    0 0 0
    0 0 0
    1 1 0
    1 0 0
    1 0 0
    0 0 0
    0 0 0
    0 1 0
    0 0 0
    1 0 0
    1 0 0
    1 0 0
    0 0 0
    0 0 0
    0 0 0
    0 0 0
    1 0 0
    1 0 1
    1 0 0
    1 0 0
    0 0 0
    1 0 0
    1 0 0
    0 0 0
    1 0 0
    1 0 0
    1 0 0
    1 0 0
    1 0 0
    0 0 0
    1 0 0
    1 0 0
    1 0 0
    0 0 0
    0 0 0
    0 0 0
    1 0 0
    0 0 0
    0 0 0
    1 0 0
    1 0 0
    1 0 0
    0 0 0
    1 0 0
    1 0 0
    0 0 0
    0 0 0
    0 0 0
    1 0 0
    1 0 0
    end
    Ho-Chuan (River) Huang
    Stata 17.0, MP(4)

    Comment

    Working...
    X