getinterval: A function used to get interval estimation of linear...

Description Usage Arguments Value Examples

View source: R/interval.R

Description

This function is used to calculate the interval estimation of linear regression parameters

Usage

1
getinterval(fm, alpha = 0.05)

Arguments

fm

The regression model calculated by function lm

alpha

alpha is the confidence level

Value

confidence intervals of linear regression parameters and the left(right) is the left(right) endpoint of the confidence interval

Examples

1
2
3
4
x<-c(0.10, 0.11, 0.12, 0.13, 0.14, 0.15,0.16, 0.17, 0.18, 0.20, 0.21, 0.23)
y<-c(42.0, 43.5, 45.0, 45.5, 45.0, 47.5,49.0, 53.0, 50.0, 55.0, 55.0, 60.0)
lm.sol<-lm(y ~ 1+x+I(x^2))
getinterval(lm.sol)

Panxiaoba/StatComp18013 documentation built on May 5, 2019, 11:06 p.m.