It will estimate the baseline hazard (ho) and the time interval that best describes a estimations of the probabilities of time-to-event Poisson events
CalibrationProbPoissonRisk(Riskdata,trim=0.10)
CoxRiskCalibration(ml,data,outcome,time,trim=0.10,timeInterval=NULL)
A vector with the prognistic index based on the provided probabilities
The vector with the calibrated probabilites of the event happening
The predicted hazard of each event
The estimated bsaeline hazard
The calibration gain
The time interval of the Poisson event
The mean observed interval of events
The cumulated hazzard after calibration
The relative difference between observed and estimated number of events.
The data frame with thre columns: Event, Probability of event, time to event
The percentge of tails of data not to be used to estimate the time interval
The time interval for event rate estimation
A Cox model of the events
the new dataframe to predict the model
The name of the columnt that has the event: 1 uncensored, 0; Censored
The time to event, or time to last observation.
Jose G. Tamez-Pena
The function will estimate the baseline hazard of Poisson events and its corresponding time interval from a list of predicted probability that the event will occur for censored (Outome=0) of the actual event happened (Outcome=1). If the timeInterval is not provided, the funtion will estimete the initial time interval to be used to get the best time interval that models the rate of events.
RRPlot