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

apollo_varList

Lists variables names and definitions used in V


Description

Returns a list containing the names and definitions of variables used in V

Usage

apollo_varList(
  apollo_probabilities,
  apollo_beta,
  apollo_inputs,
  V,
  cpp = FALSE
)

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.

cpp

Scalar logical. If TRUE, expressions are modified to match C++ syntax (e.g. x^y -> pow(x,y)). FALSE by default.

Details

It looks for variables in apollo_beta, apollo_randCoeff, draws, and apollo_probabilities. It returns them in a list ordered by origin.

Value

A list containing the following elements (all of type character):

  • b: Vector with the names of variables contained in apollo_beta.

  • x: Vector with the names of variables contained in database.

  • d: Vector with the names of variables contained in draws.

  • r: Matrix with the names (first column) and definitions (second column) of variables contained in apollo_randCoeff.

  • p: Matrix with the names (first column) and definitions (second column) of variables contained in apollo_probabilities.

  • v: Matrix with the names (first column) and definitions (second column) of utilities contained in V.


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.