define_varajust: Detect adjustment variables

View source: R/ajustments.R View source: R/ajustments.R

define_varajustR Documentation

Detect adjustment variables

Description

Detect adjustment variables

Detect adjustment variables

Usage

define_varajust(tab, vardep, varindep, type, by_lasso = TRUE, all_vars = FALSE)

define_varajust(tab, vardep, varindep, type, by_lasso = TRUE, all_vars = FALSE)

Arguments

tab

A data frame

vardep

A character string of the dependant variable

varindep

A character vector of the independant variables

type

A character string of the type of modeling, having a value among "linear", "logistic" or "survival"

by_lasso

a logical: is the adjustment variable computed with lasso?


KZARCA/simplestats documentation built on Feb. 19, 2024, 1:11 a.m.