getResponse | R Documentation |
Getting the response vector out of an object of class 'formula'
getResponse(formula, data)
formula |
Model formula |
data |
Dataframe |
Vector of response
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.