Learn R Programming

ddtlcm (version 0.2.1)

initialize_randomLCM: Provide a random initial response profile based on latent class mode

Description

Provide a random initial response profile based on latent class mode

Usage

initialize_randomLCM(K, data)

Value

a K by J probability matrix, the k,j-th entry being the response probability to item j of an individual in class k

Arguments

K

number of latent classes

data

a N by J observed binary matrix, where the i,j-th element is the response of item j for individual i