Skip to contents

Estimate P(Di = di | xi = k, Zi, Ci)

Usage

p_D(d, beta, Z, mu_censor, gamma = 0)

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)

Value

a vector of estimated P(Di_di | xi = k, Zi, Ci)