AR.test | R Documentation |
AR.test
computes the Anderson-Rubin (1949) test for the ivmodel
object as well as the associated confidence interval.
AR.test(ivmodel, beta0 = 0, alpha = 0.05)
ivmodel |
|
beta0 |
Null value |
alpha |
The significance level for hypothesis testing. Default is 0.05. |
AR.test
returns a list containing the following components
Fstat |
The value of the test statistic for testing the null hypothesis |
df |
degree of freedom for the test statistic |
p.value |
The p value of the test under the null hypothesis |
ci |
A matrix of two columns, each row contains an interval associated with the confidence interval |
ci.info |
A human-readable string describing the confidence interval |
Yang Jiang, Hyunseung Kang, and Dylan Small
Anderson, T.W. and Rubin, H. (1949), Estimation of the parameters of a single equation in a complete system of stochastic equations, Annals of Mathematical Statistics, 20, 46-63.
See also ivmodel
for details on the instrumental variables model.
data(card.data)
Y=card.data[,"lwage"]
D=card.data[,"educ"]
Z=card.data[,"nearc4"]
Xname=c("exper", "expersq", "black", "south", "smsa", "reg661",
"reg662", "reg663", "reg664", "reg665", "reg666", "reg667",
"reg668", "smsa66")
X=card.data[,Xname]
foo = ivmodel(Y=Y,D=D,Z=Z,X=X)
AR.test(foo)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.