Learn R Programming

apollo (version 0.2.6)

apollo_checkArguments: Checks definitions Apollo functions

Description

Checks that the user-defined functions used by Apollo are correctly defined by the user.

Usage

apollo_checkArguments(
  apollo_probabilities = NA,
  apollo_randCoeff = NA,
  apollo_lcPars = NA
)

Arguments

apollo_probabilities

Function. Likelihood function as defined by the user.

apollo_randCoeff

Function. Defines the random components used inside apollo_probabilities.

apollo_lcPars

Function. Defines the class allocation probabilities and (optionally) the lists of parameters of each class for latent class models.

Value

Returns (invisibly) TRUE if definitions are correct, and FALSE otherwise.

Details

It only checks that the functions have the correct definition of inputs. It does not run the functions.