File: camtriv.inp

package info (click to toggle)
gretl 2022c-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 59,552 kB
  • sloc: ansic: 409,074; sh: 4,449; makefile: 3,222; cpp: 2,777; xml: 599; perl: 364
file content (22 lines) | stat: -rw-r--r-- 583 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Replicate several count data models of doctor visits from 
# A. C. Cameron and P. K. Trivedi, "Regression Analysis of 
# Count Data" (Cambridge, 1998).  

# See also http://cameron.econ.ucdavis.edu/racd/count.html
# and http://www.stanford.edu/~clint/bench/ for TSP results

open rac3d.gdt --quiet
list X = 0 SEX AGE AGESQ INCOME LEVYPLUS FREEPOOR FREEREPA \
  ILLNESS ACTDAYS HSCORE CHCOND1 CHCOND2

# Poisson regression
poisson DVISITS X

# Negative binomial (model II)
negbin DVISITS X

# Negative binomial (model I)
negbin DVISITS X --model1

# ordered probit
probit DVISITS X