Skip to contents

Calculate relative entropy for the selection of individual frailty and number of latent classes

Usage

entropy(alpha, beta, d, Z, mu_censor, gamma = 0)

Arguments

alpha

regression coefficient for multinomial logistic regression model

beta

class specific parameters for recurrent model

d

a vector of observed recurrent events for subjects of interest

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 numerical number which measures relative entropy