Estimate P(Di = di | xi = k, Zi, Ci)
Arguments
- d
a vector of observed recurrent events for subjects of interest
- beta
class specific parameters for recurrent model
- Z
a vector of time-independent corvariates
- mu_censor
a vector of estimated mu(C), where C is a vector of censoring time
- gamma
individual frailty. 0 represents the frailty equals 1 and k represents the frailty follows gamma(k,k)