File: oprobit.inp

package info (click to toggle)
gretl 2016d-1
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 48,620 kB
  • ctags: 22,779
  • sloc: ansic: 345,830; sh: 4,648; makefile: 2,712; xml: 570; perl: 364
file content (23 lines) | stat: -rw-r--r-- 545 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Use Ray Fair's extra-marital affairs data, as reproduced
# by William Greene
open greene22_2

# display the definitions of the variables
labels

# The variable 'Z8' is the self-rating of marriage:
# we subtract one to give a base of zero, mark the resulting
# variable as discrete, examine its frequency distribution,
# then relate it to gender (Z1) and age in years (Z2)
series rat = Z8 - 1
discrete rat 
freq rat

# ordered probit
probit rat 0 Z1 Z2
probit rat 0 Z1 Z2 --robust

# ordered logit
logit rat 0 Z1 Z2
logit rat 0 Z1 Z2 --robust