get_intvl_limit {expirest} | R Documentation |
Confidence or prediction interval limit
Description
The function get_intvl_limit()
calculates the upper or lower
confidence or prediction interval limit(s) at a given value of x
.
Usage
get_intvl_limit(
x_new,
model,
alpha = 0.05,
ivl = "confidence",
ivl_type = "one.sided",
ivl_side = "lower"
)
Arguments
x_new |
A numeric value of |
model |
A linear model object of type ‘ |
alpha |
A numeric value between 0 and 1 that specifies the significance
level for the calculation of confidence or prediction intervals. The
default is |
ivl |
A character string of either |
ivl_type |
A character string that specifies if a “one sided”
or a “two sided” interval should be calculated, i.e. either
|
ivl_side |
A character string that specifies if the specification
limit, given that the limit has only one side, is an “upper” or a
“lower” bound, i.e. it is specified as either |
Details
The function get_intvl_limit()
calculates the upper or lower
confidence or prediction interval limit(s) for the linear regression model
provided by model
.
Value
A numeric value or, if model
contains a categorical variable,
a numeric vector of the predicted upper or lower confidence or prediction
interval limit(s) at a given value of x
.