fit_model: Fit cox regression model

Description Usage Arguments Details Value Examples

Description

This function sets up variables in the input data using the variable_setup function, and then fits and returns the model.

Usage

1

Arguments

data

The data to use in fitting the model.

summary

If true, this function will print a summary of the model (e.g. statistics, coefficients). Default is set to false.

Details

Value

Returns the cox regression model with 19 independent predictors. See the documentation on the variable_setup function for details on what each predictor represents.

Examples

1
2
3
4
dir <- file.path(getwd(),"data")
out <- read.csv(file.path(dir, "answers_data.csv")) # data set without any variables set up
model <- fit_model(out)
model # calling model by itself will also print out a summary

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