Usage
npr.wpc.est(event, censor, marker, cutoff, method, weights, wdth, nsub, sspeed, df,
confi, nbtsp, quantile)
Arguments
event
This is the survival time. It is a positive numerical vector with no missing values.
censor
This specifies censor information. It is a vector, with 1 indicating an event and 0 indicating right censored. No missing values are allowed.
marker
This is the biomarker information (or other interesting variables). It is numerical with no missing values.
cutoff
This is to define the interesting data cutoff time point. The weighted predictiveness curve will be plotted based on this time point.
method
This is to specify the method used to define the series of overlapping windows. Two options are provided: method=window.width when the approach of fixing the biomarker scale window width is used.
method=number.subjt when the approach of fixing the number of subjects within each window is used.
weights
This is to specify the weight function, which will be applied to the Kaplan Meier approach for the survival rate estimates within each window. There are four options provided for this weight function:
"uniform", "normal", "trunnormal", and "huber".
wdth
"This is to specify window width, which is defined based on the biomarker scale. The smaller the window width is, the more the overlapping windows are specified.
This parameter needs to be specified when we are using the fixed window width approach.
nsub
This is to specify the fixed number of patients within each window. The smaller the number of patients within each window, the more the overlapping windows are specified.
This parameter need to be specified when we are using the fixed number of subject within each window arrpoach.
sspeed
This is to specify the window sliding step. The window is gradually moving from small values on the left to the large values on the right.
This variable specifies the window sliding step being removed from the left and added on the right, in order to keep the same window width for each window.
df
It defines the degree of polynomials used for loess function when the local regression method is implemented. Normally, we take the value of 1 or 2. Here df=2 as default.
confi
This provides the option of reporting the confident band. If confi="NO", the confident band will not be generated. If confi="YES", the confident band will be generated.
Since we are using the bootstrap resampling method, it can be time-consuming to generate the confident band. Default is "NO".
nbtsp
This specifies the number of resampling for generating confident band. This number needs to be specified if the confi=YES. Default is 1000.
quantile
This specifies the quantile of the confident band. Default is 0.95, 95% Confident band will be generated.