conf.functions: Conf Int Functions

Description Usage Arguments Details Value Note Author(s) References See Also Examples

Description

Functions to obtain confidence interval for a regression.

Usage

1
 conf.int.lm(dat.lm, alpha) 

Arguments

dat.lm

data frame used for regression

alpha

alpha or error type I

Details

Calculates and plots the confidence intervals for a regression (Follows MathSoft 1999, pages 7-26 to 7-29).

Value

lower

lower value of confidence interval

upper

upper value of confidence interval

Note

Input files are in 'datafiles.zip' in directory 'datafiles' and organized by chapters of Acevedo (2013). The example below requires an input file.

Author(s)

Miguel F. Acevedo Acevedo@unt.edu

References

Acevedo M.F. 2013. "Data Analysis and Statistics for Geography, Environmental Science, and Engineering", CRC Press. MathSoft, 1999. S-PLUS 2000 Guide to Statistics Volume 1 and Volume 2.

See Also

linear regression lm, plots plot

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
light.depth <- read.table(file="lab6/light-depth.csv",sep=",",header=TRUE)
attach(light.depth)
light.lm <- lm(Light ~ Depth) 
par(mfrow=c(2,1))
plot(Depth, Light)    
abline(light.lm$coef)
conf.int.lm(light.lm, 0.05)

## End(Not run)

seeg documentation built on May 30, 2017, 7:09 a.m.