getResponse: Auxiliary function

View source: R/getResponse.R

getResponseR Documentation

Auxiliary function

Description

Getting the response vector out of an object of class 'formula'

Usage

getResponse(formula, data)

Arguments

formula

Model formula

data

Dataframe

Value

Vector of response

Examples


data(pasi)

data(pasi)
getResponse(pasi.ch ~ dose, data=pasi)

library(survival)
data(ovarian)
ovarian$subgroups <- as.factor(10*ovarian$ecog.ps+ovarian$rx)

surv <- getResponse(Surv(futime,fustat)~rx, data=ovarian)
print(surv)
class(surv)

openpharma/CTP documentation built on Sept. 29, 2022, 1:58 p.m.