MakeModelFormula {rnaEditr} | R Documentation

## Make model formula.

### Description

Make model formula for different types of phenotype responses.

### Usage

    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

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

[Package rnaEditr version 1.2.0 Index]