confidence_intervals: Confidence and prediction intervals for a linear model

Description Usage Arguments Details Value

Description

Compute the confidence and prediction intervals for a linear regression model model.

Usage

1
2
confidence_intervals(model, pvalue = 0.05,
                            xlim = range(model$model[ , 2]), x.length = 20)

Arguments

model

a linear model obtained using lm function.

pvalue

a p-value. pvalue = 0.05 by default.

xlim

a vector of two numeric values. xlim = range(model$model[,2]) by default.

x.length

an integer, indicating the number of points to compute.

Details

None.

Value

Return a list containing a vector x of x-values (ranging from xlim[1] to xlim[2]), the corresponding values y.confidence for confidence interval, the corresponding values y.prediction for prediction interval.


BenitoJaillard/combinAna documentation built on May 9, 2019, 2:17 a.m.