Learn R Programming

apollo (version 0.0.1)

apollo_makeCluster: Creates cluster for estimation.

Description

Creates cluster and loads pieces of the database in each worker.

Usage

apollo_makeCluster(apollo_control, apollo_probabilities, database,
  draws = NA, apollo_randcoeff = NA, apollo_lcpars = NA,
  silent = FALSE)

Arguments

apollo_control

List of model options.

apollo_probabilities

Function. likelihood provided by the user.

database

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

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.

silent

Boolean. Default is FALSE.

Value

Cluster (i.e. an object of class cluster from package parallel)

Details

Internal use only. Called by apollo_estimate before estimation. AT least doubles up memory usage. But during the splitting it uses even more (~250