Announcement

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

  • ML estimation ado file for probit model

    Apologies, I'm a new user and I'm trying to write an ado file to perform ML estimation on a probit model. I have found several resources and I'm just not sure why I'm getting an error for invalid syntax ==1

    capture program drop myprobit_jss
    *! myprobit_jss v01a JSS 30May2022
    program define myprobit_jss
    args lnf xb
    quietly replace `lnf' = ln(normal(`xb')) if $ML_y1==1
    quietly replace `lnf' = ln(normal(-`xb')) if $ML_y1==0
    end
Working...
X