Skip to contents

Obtain initial value for alpha by: 1. assign class membership to all subjects with Kmeans, then fit the multinomial regression to obtain alpha. Obtain initial value for beta by fitting the multiplicative intensity model studies by Wang et al. (2001) using the reReg() function, stratified by the latent class membership assigned by Kmeans.

Usage

get_initial(dat, K)

Arguments

dat

a data frame containing the data in the model

K

number of latent classes

Value

A list containing the following components:

ini_alphaA matrix of initial alpha
ini_betaA matrix of initial beta