apollo_conditionals: Calculates conditionals

Description Usage Arguments Details Value

View source: R/apollo_conditionals.R

Description

Calculates posterior expected values (conditionals) of random coefficients, as well as their standard deviations.

Usage

1
apollo_conditionals(model, apollo_probabilities, apollo_inputs)

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

apollo_inputs

List grouping most common inputs. Created by function apollo_validateInputs.

Details

This functions is only meant for use with continuous distributions

Value

List of matrices. Each matrix has dimensions nIndiv x 3. One matrix per random component. Each row of each matrix contains the indivID of an individual, and the posterior mean and s.d. of this random component for this individual


apollo documentation built on Oct. 30, 2019, 12:10 p.m.