cv: Performs an iteration of cross-validation

Description Usage Arguments Value

Description

Fits a Cox proportional hazards model to the given training set and predicts on the input test set. Performance metrics for predicted hazard ratios for training and test sets are calculated.

Usage

1
cv(variables, train, test)

Arguments

variables

a string of the variables to use in the model ("new_user + text_length + ...")

train

training set to build the model on

test

test set to predict on

Value

data frame with prediction performance metrics for the training and test set


loshita/oshitar documentation built on May 8, 2019, 11:12 p.m.