cp_thrs_PR2: Compute threshold values based on the pseudo R2

View source: R/cp_thrs_PR2.R

cp_thrs_PR2R 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

n \times p data.frame of independent variables (factors allowed)

fam

character vector of length 1 storing the description of the error distribution and link function to be used in the model (see cv_gspcr() for the list of possible options)

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")


gspcr documentation built on May 29, 2024, 2:44 a.m.