build.y

Description

Build the y survival object for a glmnet model

Usage

1

Arguments

formula

A formula

data

A data.frame

Details

Given a formula and a data.frame build the y survival object

Value

A surival object for the portion of the formula in Surv

Author(s)

Jared P. Lander

Examples

1
2
3
require(ggplot2)
head(mpg)
head(build.y(hwy ~ class + cyl + year, data=mpg))

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.