CoxRiskCalibration: Baseline hazard and interval time Estimations

View source: R/PoissonEventRiskCalibration.R

CalibrationProbPoissonRiskR Documentation

Baseline hazard and interval time Estimations

Description

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

Usage

	CalibrationProbPoissonRisk(Riskdata,trim=0.10)
	CoxRiskCalibration(ml,data,outcome,time,trim=0.10,timeInterval=NULL)

Arguments

Riskdata

The data frame with thre columns: Event, Probability of event, time to event

trim

The percentge of tails of data not to be used to estimate the time interval

timeInterval

The time interval for event rate estimation

ml

A Cox model of the events

data

the new dataframe to predict the model

outcome

The name of the columnt that has the event: 1 uncensored, 0; Censored

time

The time to event, or time to last observation.

Details

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.

Value

index

A vector with the prognistic index based on the provided probabilities

probGZero

The vector with the calibrated probabilites of the event happening

hazard

The predicted hazard of each event

h0

The estimated bsaeline hazard

hazardGain

The calibration gain

timeInterval

The time interval of the Poisson event

meaninterval

The mean observed interval of events

Ahazard

The cumulated hazzard after calibration

delta

The relative difference between observed and estimated number of events.

Author(s)

Jose G. Tamez-Pena

See Also

RRPlot

Examples

  #TBD

FRESA.CAD documentation built on Nov. 25, 2023, 1:07 a.m.