Generate data for plotting survival analysis decision curves.
Returns a data for plotting a decision curve.
a data frame containing the variables in the model.
the outcome, response variable. Must be a variable contained within the data frame specified in data=.
the predictor variable(s). Must be a variable(s) contained within the data frame specified in data=.
specifies whether or not each of the independent variables are probabilities. The default is TRUE.
starting value for x-axis (threshold probability) between 0 and 1. The default is 0.01.
stopping value for x-axis (threshold probability) between 0 and 1. The default is 0.99.
increment for threshold probability. The default is 0.01.
minimum bound for graph.
specifies the harm(s) associated with the independent variable(s). The default is none.
specifies whether or not to display graph of net benefits. The default is TRUE.
plot net reduction in interventions
number of net reduction in interventions per interger. The default is 100
specifies the degree of smoothing. The default is 0.10.
specifies the time point at which the decision curve analysis is performed.
if evaluating outcome in presence of a competing risk. The default is FALSE
specifies whether or not to smooth net benefit curve. The default is FALSE.
Enter the time variable in your data.
This function was created and written by Dr Andrew Vickers to generate decision curve data.