Description Usage Arguments Value
View source: R/predictWithLinRegModel.R
Apply a fit linear model to predict the response based on new data.
1 2 3 4 5 6 7 | predictWithLinRegModel(
model = NULL,
useModelYIntercept,
coeffVec = NULL,
yIntercept = 0,
newData
)
|
model |
A fit linear model (currently restricted to models of class enResults). If this parameter is provided, coeffVec and yIntercept parameters are not needed, and will be ignored if provided. |
useModelYIntercept |
A boolean value indicating whether to use the intercept term provided by the model (default = TRUE) |
coeffVec |
A named vector of coefficient weights (which need not be specified if model parameter is provided instead). |
yIntercept |
An intercept term (default = 0) |
newData |
A matrix with predictor variable data over observations (specified along rows or columns). |
A vector of predicted response values.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.