cp_thrs_PR2 {gspcr} | R Documentation |
Compute threshold values based on the pseudo R2
Description
Produces a vector of threshold values that define active predictors.
Usage
cp_thrs_PR2(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
A vector of bivariate association measures between dv
and ivs
.
Author(s)
Edoardo Costantini, 2023
Examples
# Example inputs
dv <- mtcars[, 1]
ivs <- mtcars[, -1]
# Use the function
cp_thrs_PR2(dv, ivs, fam = "gaussian")
[Package gspcr version 0.9.5 Index]