apollo_cppScript: Generate C++ function to calculate V

Description Usage Arguments Details Value

View source: R/apollo_cppScript.R

Description

Returns an R function that calls a C++ function which calculates V efficiently.

Usage

1
apollo_cppScript(apollo_probabilities, apollo_beta, apollo_inputs, V)

Arguments

apollo_probabilities

Likelihood function of the whole model.

apollo_beta

Named numeric vector of parameters to be estimated.

apollo_inputs

List of arguments and settings generated by apollo_validateInputs.

V

Named list of functions.

Details

V must be a list of functions.

Value

A function that receives three arguments:

# DataFrame db, NumericVector b, List drw

And returns a named list with numeric elements.


byu-transpolab/apollo-byu documentation built on Dec. 19, 2021, 12:49 p.m.