stdca {ggscidca}R Documentation

stdca

Description

Generate data for plotting survival analysis decision curves.

Arguments

data

a data frame containing the variables in the model.

outcome

the outcome, response variable. Must be a variable contained within the data frame specified in data=.

predictors

the predictor variable(s). Must be a variable(s) contained within the data frame specified in data=.

probability

specifies whether or not each of the independent variables are probabilities. The default is TRUE.

xstart

starting value for x-axis (threshold probability) between 0 and 1. The default is 0.01.

xstop

stopping value for x-axis (threshold probability) between 0 and 1. The default is 0.99.

xby

increment for threshold probability. The default is 0.01.

ymin

minimum bound for graph.

harm

specifies the harm(s) associated with the independent variable(s). The default is none.

graph

specifies whether or not to display graph of net benefits. The default is TRUE.

intervention

plot net reduction in interventions

interventionper

number of net reduction in interventions per interger. The default is 100

loess.span

specifies the degree of smoothing. The default is 0.10.

timepoint

specifies the time point at which the decision curve analysis is performed.

cmprsk

if evaluating outcome in presence of a competing risk. The default is FALSE

smooth

specifies whether or not to smooth net benefit curve. The default is FALSE.

ttoutcome

Enter the time variable in your data.

Details

This function was created and written by Dr Andrew Vickers to generate decision curve data.

Value

Returns a data for plotting a decision curve.


[Package ggscidca version 0.2.3 Index]