MakeModelFormula: Make model formula.

Description Usage Arguments Details Value Examples

View source: R/util_MakeModelFormula.R

Description

Make model formula for different types of phenotype responses.

Usage

1
2
3
4
5
MakeModelFormula(
  responses_char,
  covariates_char = NULL,
  respType = c("binary", "continuous", "survival")
)

Arguments

responses_char

A character vector of the response variable.

covariates_char

A character vector of the covariate variables.

respType

Type of outcome. Defaults to "binary".

Details

When respType is set as "survival", "surv_object" is only a placeholder here , which will be defined later in TestSingleRegion().

Value

A character vector of the model formula.

Examples

 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"
)

rnaEditr documentation built on Nov. 8, 2020, 8:26 p.m.