compute_sc {gspcr} | R Documentation |
Compute the GLM systematic component.
Description
Compute the systematic component of a GLM of interest.
Usage
compute_sc(mod, predictors)
Arguments
mod |
a fit object returned by one of |
predictors |
matrix or data.frame of predictor values to compute the systematic component based on. |
Details
This function takes different model objects and knows how to treat the coefficient vector (or matrix) to obtain the systematic component.
Value
a matrix of n \times k
, where k
is equal to 1 for all but multi-categorical models. This matrix contains the systematic component values for the provided predictors.
Author(s)
Edoardo Costantini, 2023
[Package gspcr version 0.9.5 Index]