get_linear_predictor | R Documentation |
This function computes the linear predictor from a matrix of predictor variables and a vector of coefficients. It handles cases with and without an intercept term.
get_linear_predictor(X, coefs)
X |
A matrix of predictor variables. |
coefs |
A vector of coefficients. It should be either the same length as the number of columns in X (for models without an intercept) or one more than the number of columns in X (for models with an intercept). |
A vector of linear predictor values.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.