vim_corr: Correlation analysis

View source: R/vim_corr.R

vim_corrR Documentation

Correlation analysis

Description

Examine variables most correlated with the outcome. Currently assumes that outcome is binary variable.

Usage

vim_corr(
  covariates,
  data,
  outcome,
  weights = rep(1, nrow(data)),
  bootse = TRUE,
  verbose = FALSE
)

Arguments

covariates

Character vector listing the covariates to analyze.

data

Dataframe of covariates and outcome.

outcome

Outcome variable, assumed binary.

weights

Optional observation weight vector.

bootse

Whether bootstrap standard errors should be used for inference.

verbose

If TRUE display extra information.


ck37/ckTools documentation built on April 29, 2023, 11:47 p.m.