Skip to contents

print shows the results display: the baseline estimate at \(\gamma = 0\), the scale factors, and the UCI union or the LTZ interval with the prior-only band. coef and vcov return the baseline target estimates and their (Murphy-Topel or MLE) covariance; nobs the number of observations used.

Usage

# S3 method for apexog
print(x, ...)

# S3 method for apexog
coef(object, ...)

# S3 method for apexog
vcov(object, ...)

# S3 method for apexog
nobs(object, ...)

Arguments

x, object

An "apexog" object.

...

Unused.

Value

print returns x invisibly; coef a named vector; vcov a matrix; nobs an integer.

Examples

data(promotion)
fit <- apexog(promoted ~ tenure + manager, endog = training ~ subsidy,
              data = promotion, gmin = -0.1, gmax = 0.1, grid = 3,
              verbose = FALSE)
fit
#> ------------------------------------------------------------------------------
#> Plausibly-exogenous APE bounds (CHR 2012, UCI method)
#> Estimator: cfprobit  |  First stage: linear  |  SE: two-step  |  N = 4000
#> Endogenous: training
#> Target:    APE of training
#> ------------------------------------------------------------------------------
#> Baseline (gamma = 0):
#>     APE(training)      = 0.144457  (SE 0.008376)  [0.128040, 0.160874]
#> 
#> Scale:     1 latent-index unit of gamma = 0.2091 pr. points per unit of Z (avg., baseline)
#>            1 structural-latent unit of gamma = 1.1986 latent-index units  (sigma_tilde = 0.8343)
#> 
#> UCI union over gamma grid (3 point(s) per instrument):
#>     gamma_subsidy  range: [-0.1000, 0.1000]   exact Pr scale: [-0.0209, 0.0209]
#> 
#>     APE(training)      bounds = [0.097095, 0.190449]
#> ------------------------------------------------------------------------------
coef(fit)
#>  training 
#> 0.1444568 
sqrt(diag(vcov(fit)))
#>    training 
#> 0.008376224 
nobs(fit)
#> [1] 4000