Learn R Programming

apollo (version 0.0.8)

apollo_makeCluster: Creates cluster for estimation.

Description

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

Usage

apollo_makeCluster(apollo_probabilities, apollo_inputs, silent = FALSE)

Arguments

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 "estimate" (default), "prediction", "validate", "conditionals", "zero_LL", or "raw".

apollo_inputs

List grouping most common inputs. Created by function apollo_validateInputs.

silent

Boolean. If TRUE, it reports progress to the console. 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