apollo_lcEM {apollo}  R Documentation 
Uses the EM algorithm for estimating a latent class model.
apollo_lcEM(
apollo_beta,
apollo_fixed,
apollo_probabilities,
apollo_inputs,
lcEM_settings = NA,
estimate_settings = NA
)
apollo_beta 
Named numeric vector. Names and values for parameters. 
apollo_fixed 
Character vector. Names (as defined in 
apollo_probabilities 
Function. Returns probabilities of the model to be estimated. Must receive three arguments:

apollo_inputs 
List grouping most common inputs. Created by function apollo_validateInputs. 
lcEM_settings 
List. Options controlling the EM process.

estimate_settings 
List. Options controlling the estimation process within each EM iteration. See apollo_estimate for details. 
This function uses the EM algorithm for estimating a Latent Class model. It is only suitable for models without
continuous mixing. All parameters need to vary across classes and need to be included in the apollo_lcPars
function which is used by apollo_lcEM
.
model object