Description Usage Arguments Details Value Examples
View source: R/util_MakeModelFormula.R
Make model formula for different types of phenotype responses.
1 2 3 4 5 | 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.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | 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.