View source: R/util_MakeModelFormula.R
| MakeModelFormula | R Documentation |
Make model formula for different types of phenotype responses.
MakeModelFormula(
responses_char,
covariates_char = NULL,
respType = c("binary", "continuous", "survival")
)
responses_char |
A character vector of the response variable. |
covariates_char |
A character vector of the covariate variables. |
respType |
Type of outcome. Defaults to |
When respType is set as "survival",
"surv_object" is only a placeholder here , which will be defined
later in TestSingleRegion().
A character vector of the model formula.
MakeModelFormula(
responses_char = "age",
covariates_char = c("sex", "tumor_type"),
respType = "continuous"
)
MakeModelFormula(
responses_char = "sample_type",
covariates_char = c("sex", "tumor_type"),
respType = "binary"
)
MakeModelFormula(
responses_char = c("OS.time", "OS"),
covariates_char = c("sex", "tumor_type"),
respType = "survival"
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.