View source: R/ajustments.R View source: R/ajustments.R
define_varajust | R Documentation |
Detect adjustment variables
Detect adjustment variables
define_varajust(tab, vardep, varindep, type, by_lasso = TRUE, all_vars = FALSE)
define_varajust(tab, vardep, varindep, type, by_lasso = TRUE, all_vars = FALSE)
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? |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.