Learn R Programming

apollo (version 0.3.4)

apollo_lcUnconditionals: Returns unconditionals for a latent class model model

Description

Returns values for random parameters and class allocation probabilities in a latent class model model.

Usage

apollo_lcUnconditionals(model, apollo_probabilities, apollo_inputs)

Value

List of object, one per random component and one for the class allocation probabilities.

Arguments

model

Model object. Estimated model object as returned by function apollo_estimate.

apollo_probabilities

Function. Returns probabilities of the model to be estimated. Must receive three arguments:

  • apollo_beta: Named numeric vector. Names and values of model parameters.

  • apollo_inputs: List containing options of the model. See apollo_validateInputs.

  • functionality: Character. Can be either "components", "conditionals", "estimate" (default), "gradient", "output", "prediction", "preprocess", "raw", "report", "shares_LL", "validate" or "zero_LL".

apollo_inputs

List grouping most common inputs. Created by function apollo_validateInputs.