get_icpt {expirest} | R Documentation |
Getting the intercept(s) of a linear model
Description
The function get_icpt()
determines the intercept(s) of the provided
model.
Usage
get_icpt(
model,
response_vbl,
time_vbl,
batch_vbl,
xform = c("no", "no"),
shift = c(0, 0)
)
Arguments
model |
A linear model object of type ‘ |
response_vbl |
A character string that specifies the response variable name that must be a column of the data frame that was used for model fitting. |
time_vbl |
A character string that specifies the time variable name that must be a column of data frame that was used for model fitting. |
batch_vbl |
A character string that specifies the column of the data frame that was used for model fitting with the grouping information (i.e. a categorical variable) for the differentiation of the observations from the different batches. |
xform |
A vector of two character strings that specifies the
transformation of the response and the time variable. The default is
“no” transformation, i.e. |
shift |
A vector of two values which will be added to the variables
|
Details
The function get_icpt()
determines the intercept(s) of the
model that has been handed over via the model
parameter.
Value
A list with a single element containing the numeric value or a numeric vector of the intercept(s) or, if the data have been transformed, a list with an additional element that contains the numeric value or numeric vector on the original scale is returned.
See Also
get_icpt_list
, expirest_osle
,
expirest_wisle
, lm
.