Announcement

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

  • #16
    cmp doesn't do logit.

    Comment


    • #17
      Does anyone know why I receive the following error after margins command?

      HTML Code:
      . margins, dydx(*) predict(equation(rwork)) force noestimcheck
      invalid dydx() option;
      variable married may not be present in model as factor and continuous predictor

      Comment


      • #18
        I changed the estimation to :

        HTML Code:
        cmp (rwork =rshlt_# c.age##c.age  i.married##i.child18_  i.lesshighschool##i.ageover62 i.college##i.ageover62 i.collegemore##i.ageover62 i.whitecollar2_ i.bluecollar c.wealth i.hispanic i.black i.midwest i.northeast i.west i.rcovown i.yr1996 i.yr1998 i.yr2000 i.yr2002 i.yr2004 i.yr2006 i.yr2008|| hhidpn:) (rshlt_=rwork# c.pc c.rconde c.age##c.age i.married  i.lesshighschool i.college i.collegemore i.whitecollar2_ i.bluecollar c.wealth i.hispanic i.black i.rsmoke i.rdrink i.lagsmoke i.lagdrink i.lagprevent i.midwest i.northeast i.west i.rhibpe i.rdiabe i.rcancre i.rlunge i.rhearte i.rstroke i.rpsyche i.rarthre  i.rhlthins || hhidpn:) if (ragender==1 & age<=65) ,ind($cmp_probit $cmp_oprobit) nolr nonrtol tech(dfp)
        HTML Code:
        cmp, resultsform(reduced)
        HTML Code:
        margins, dydx(*) predict(equation(rwork)) force noestimcheck
        now Stata shows it's working, and doesn't show any error. However, it takes a long time without any result! I cannot figure out what is wrong with it.

        Comment


        • #19
          Hi Maryam Bidgoli , I am also reviewing Cai's paper for my capstone this semester. I have followed the conversation on this platform and so far I am okay except how to calculate the Predicted Conditional probabilities for the various cutoff points for both male and female as presented in Cai's paper. Please can you help me with the code for that part.

          Regards,
          Oliver
          University of Sydney.

          Comment

          Working...
          X