Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

apollo_cppScript

Generate C++ function to calculate V


Description

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

Usage

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

  • db: Data.frame containing observations.

  • b: Named numeric vector containing paramters to be estimated.

  • drw: Named list containing draws, as contained inside apollo_inputs.

And returns a named list with numeric elements.


apollo

Tools for Choice Model Estimation and Application

v0.2.4
GPL-2
Authors
Stephane Hess [aut], David Palma [aut, cre]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.