get_band: Get confidence bands from (GAM, lm) fit

View source: R/get_band.R

get_bandR Documentation

Get confidence bands from (GAM, lm) fit

Description

Get confidence bands from (GAM, lm) fit

Usage

get_band(fit, xpred, alpha = 0.95)

Arguments

fit

an object containing a lm or gam, with a predict method.

xpred

a vector with values at which to predict.

alpha

the level of confidence to be used in a normal approximation (default is 95%).

Value

a data.frame with mean, lower and upper predictions.


maxbiostat/npowerPrioR documentation built on Feb. 22, 2023, 2:13 p.m.