cpest {CPsurv}  R Documentation 
Shifts intervals iteratively and estimates change point at each step. Final change point is calculated by optimization over all estimations.
cpest(time, event, cpmax, intwd, cpmin, norm.riskset)
time 
Numeric vector with survival times. 
event 
Numeric vector indicating censoring status; 0 = alive (censored), 1 = dead (uncensored). If missing, all observations are assumed to be uncensored. 
cpmax 
Upper bound for estimated change point. Time period is split into intervals up to this point. Has to be an integer value. 
intwd 
Width of intervals into which the time period is split; default
is 
cpmin 
Lower bound for estimated change point; default is

norm.riskset 
Logical; if 
A list with estimated change point, pvalues of exact binomial test, mean of pvalues above estimated change point (part of regression function), lower and upper bounds of confidence intervals.