Print confidence intervals of coefficients

Share:

Description

This function prints the confidence intervals of the coefficients of the estimated equation system.

Usage

1
2
   ## S3 method for class 'confint.systemfit'
print( x, digits=3, ... )

Arguments

x

an object of type confint.systemfit.

digits

number of digits to print.

...

other arguments.

Author(s)

Arne Henningsen arne.henningsen@googlemail.com

See Also

systemfit, confint.systemfit and confint.systemfit.equation

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
data( "Kmenta" )
eqDemand <- consump ~ price + income
eqSupply <- consump ~ price + farmPrice + trend
system <- list( demand = eqDemand, supply = eqSupply )

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

## calculate and print the confidence intervals
## of all coefficients
ci <- confint( fitols )
print( ci, digits=4 )

## calculate and print the confidence intervals
## of the coefficients of the second equation
ci2 <- confint( fitols$eq[[2]] )
print( ci2, digits=4 )

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.