Learn R Programming

ivregEX (version 1.0)

sens2SLS: Sensitivity Interval for Two Stage Least Squared Regression

Description

This function performs the background sensitivity interval calculation for the 2SLS estimator in an instrumental variables regression model.

Usage

sens2SLS(delta2, df, est, se, thatY, rho2, alpha = 0.05, talpha)

Arguments

delta2

A numeric vector of values of the second sensitivity parameter. Default value seq(-.1, .1, .01). Only used for 2SLS estimator.

df, est, se

Degrees of freedom of the model; 2SLS estimate and its standard error.

thatY

t-statistic of the treatment in the regression of the instruments on the treatment.

rho2

squared partial correlation of g(instruments) and the treatment.

alpha

Significance level. Default at 0.05.

talpha

If the interval is to be adjested for model selection etc, the multiplicative factor to be used. Optional.

Value

Returns an object of class "si".

An object if class "si" is essentially a matrix of two columns for the the upper and lower sensitivity limits corresponding to the sensitivity parameters.

Details

See the description of sensIvreg.

See Also

sensIvreg, plot.si