r2describe: r2describe

View source: R/r2describe.r

r2describeR Documentation

r2describe

Description

Summarize Strength of Relationships Using R-Squared From Linear Regression

Usage

r2describe(x, nvmax = 10)

Arguments

x

numeric matrix with 2 or more columns

nvmax

maxmum number of columns of x to use in predicting a given column

Details

Function to use leaps::regsubsets() to briefly describe which variables more strongly predict another variable. Variables are in a numeric matrix and are assumed to be transformed so that relationships are linear (e.g., using redun() or transcan().)

Value

nothing

Author(s)

Frank Harrell

Examples

## Not run: 
r <- redun(...)
r2describe(r$scores)

## End(Not run)

Hmisc documentation built on June 22, 2024, 12:19 p.m.