cp_thrs_LLS {gspcr} | R Documentation |
Compute threshold values based on Log-likelihood values
Description
Produces a vector of threshold values that define active predictors.
Usage
cp_thrs_LLS(dv, ivs, fam)
Arguments
dv |
numeric vector or factor of dependent variable values |
ivs |
|
fam |
character vector of length 1 storing the description of the error distribution and link function to be used in the model (see |
Value
numeric vector of log-likelihood value from all of the univariate GLM models regressing dv
on each column of ivs
.
Author(s)
Edoardo Costantini, 2023
Examples
# Example inputs
dv <- mtcars[, 1]
ivs <- mtcars[, -1]
fam <- "gaussian"
# Use function
cp_thrs_LLS(dv, ivs, fam)
[Package gspcr version 0.9.5 Index]