## S3 method for class 'formula':
tsls(formula, instruments, data, subset, weights,
na.action, contrasts=NULL, ...)
## S3 method for class 'default':
tsls(y, X, Z, w, names=NULL, ...)
## S3 method for class 'tsls':
print(x, ...)
## S3 method for class 'tsls':
summary(object, digits=4, ...)
## S3 method for class 'tsls':
anova(object, model.2, s2, dfe, ...)
## S3 method for class 'tsls':
fitted(object, ...)
## S3 method for class 'tsls':
residuals(object, ...)
## S3 method for class 'tsls':
coef(object, ...)
## S3 method for class 'tsls':
vcov(object, ...)tsls is
called.NAs.
The default is set by the na.action option.contrasts.arg argument of
model.matrix.default.X matrix.tsls returned by tsls.formula, for anova
containing nested models
to be compared by an incremental $F$-test. One model should be nested in the other; the
order of models is immaterialtsls.formula returns an object of class tsls, with the following components:semsummary(tsls(Q ~ P + D, ~ D + F + A, data=Kmenta)) # demand equation
summary(tsls(Q ~ P + F + A, ~ D + F + A, data=Kmenta)) # supply equation
anova(tsls(Q ~ P + F + A, ~ D + F + A, data=Kmenta),
tsls(Q ~ 1, ~ D + F + A, data=Kmenta))Run the code above in your browser using DataLab