Learn R Programming

systemfit (version 0.8-0)

confint.systemfit: Confidence intervals of coefficients

Description

These functions calculate the confidence intervals of the coefficients from an object returned by systemfit.

Usage

## S3 method for class 'systemfit':
confint( object, parm = NULL, level = 0.95, \dots )

## S3 method for class 'systemfit.equation': confint( object, parm, level = 0.95, \dots )

Arguments

object
an object of class systemfit or systemfit.equation.
parm
not used yet.
level
confidence level.
...
other arguments.

Value

  • An object of class confint.systemfit, which is a matrix with columns giving lower and upper confidence limits for each estimated coefficient. These will be labelled as (1-level)/2 and 1 - (1-level)/2 in % (by default 2.5% and 97.5%).

See Also

systemfit, print.confint.systemfit, confint

Examples

Run this code
data( "Kmenta" )
demand <- consump ~ price + income
supply <- consump ~ price + farmPrice + trend
labels <- list( "demand", "supply" )
system <- list( demand, supply )

## perform OLS on each of the equations in the system
fitols <- systemfit( "OLS", system, labels, data = Kmenta )

## confidence intervals of all coefficients
confint( fitols )

## confidence intervals of the coefficients of the first equation
confint( fitols$eq[[1]] )

## confidence intervals of the coefficients of the second equation
confint( fitols$eq[[2]] )

Run the code above in your browser using DataLab