Learn R Programming

apollo (version 0.0.1)

apollo_makeLogLike: Creates loglikelihood function.

Description

Creates loglikelihood function from the likelihood function apollo_probabilities provided by the user.

Usage

apollo_makeLogLike(theta_fix_val, database, apollo_probabilities,
  apollo_control, draws = NA, apollo_randcoeff = NA,
  apollo_lcpars = NA, cl = NA, estimation_routine, work_in_logs)

Arguments

theta_fix_val

Named numeric vector. Names an values of fixed parameters.

database

data.frame Data to be used by model. Gets splitted and copied into the cluster.

apollo_probabilities

Function. likelihood provided by the user.

apollo_control

List of model options.

draws

List of draws (numeric arrays). Default is NA. Get splitted and copied into the cluster.

apollo_randcoeff

Function. Creates the random coeff or error terms by mixing draws and params. Provided by the user.

apollo_lcpars

Function. Used for latent class models. Not implemented yet.

cl

Cluster.

estimation_routine

Character.

work_in_logs

Boolean.

Value

apollo_logLike function.

Details

Internal use only. Called by apollo_estimate before estimation.