"Fossies" - the Fresh Open Source Software Archive

Member "gretl/scripts/misc/camtriv.inp" (2 Oct 2015, 583 Bytes) of package /windows/misc/gretl-2020e-win32.zip:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Charmm source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 # Replicate several count data models of doctor visits from 
    2 # A. C. Cameron and P. K. Trivedi, "Regression Analysis of 
    3 # Count Data" (Cambridge, 1998).  
    4 
    5 # See also http://cameron.econ.ucdavis.edu/racd/count.html
    6 # and http://www.stanford.edu/~clint/bench/ for TSP results
    7 
    8 open rac3d.gdt --quiet
    9 list X = 0 SEX AGE AGESQ INCOME LEVYPLUS FREEPOOR FREEREPA \
   10   ILLNESS ACTDAYS HSCORE CHCOND1 CHCOND2
   11 
   12 # Poisson regression
   13 poisson DVISITS X
   14 
   15 # Negative binomial (model II)
   16 negbin DVISITS X
   17 
   18 # Negative binomial (model I)
   19 negbin DVISITS X --model1
   20 
   21 # ordered probit
   22 probit DVISITS X