angrist: Generate data based on angrist1993

Description Usage Arguments Details Value Examples

View source: R/angrist.R

Description

Generate data based on angrist1993

Usage

1
angrist(n = 1964, pD = 3)

Arguments

n

the number of observations

pD

the number of endongenous variables

Details

This function produces as many instrumental variables and endogneous variables as exogenous variables; It generates a subsample of the replication data for The Effect of Veterans Benefits on Education and Earnings(Angrist, 1993); Y corresponds to "lnearn" of the replication data, i.e., the logarithm of the veteran's earning in 1986; X corresponds to "vietnam","age","yrsrv","drafted","officer","curmar"and "nonwhite", i.e., control variables capturing the personal charateristics of the veteran; D corresponds to the interactions between "eddif",i.e., schooling increment since entering the military and control variables; Z corresponds to the interactions between "anyva", i.e., whether veteran education benefits were used by the veteran and control variables.

Value

A list containing A list containing dependent variable Y, endogenous variable D, instrumental variable Z, exogenous variable X

Examples

1
angrist(50,3)

ChenyueLiu/ivqr documentation built on Aug. 9, 2020, 7:49 p.m.