File: leverage.inp

package info (click to toggle)
gretl 2026a-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 65,336 kB
  • sloc: ansic: 427,973; sh: 4,921; makefile: 3,266; cpp: 2,777; xml: 610; perl: 364
file content (15 lines) | stat: -rw-r--r-- 388 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# Illustration of the analysis of influential observations
# and "leverage".  The example comes from Davidson and 
# MacKinnon's "Estimation and Inference in Econometrics"
# (Oxford, 1993), Chapter 1.

open leverage.gdt

# OLS using "correct" x data
ols y 0 x1
leverage

# using data with an erroneous value for x at 
# observation 7 (otherwise x2 is identical to x1)
ols y 0 x2
leverage