plot_survival_curve {spect}R Documentation

Plots a sample of individual survival curves from the test data set.

Description

Plots a sample of individual survival curves from the test data set.

Usage

plot_survival_curve(train_result, individual_id, curve_type = "both")

Arguments

train_result

return data object from 'spect_train'

individual_id

identifier of the individual to plot

curve_type

optional specification of the type of curve. Available options are "conditional", which plots the conditional probability of surviving each interval given that the individual survived to the start of that interval, "absolute" which plots the unconditional probability of surviving each interval, and "both", the default value, which plots both curves on the same chart.

Value

None - plots the number of requested samples

Author(s)

Stephen Abrams, stephen.abrams@louisville.edu


[Package spect version 1.0 Index]