Skip to contents

Wraps simulated data, true parameter values, and DGP settings into a classed list. Returned by simulate_mnl_data(), simulate_mxl_data(), and simulate_nl_data(), and consumed by recovery_table().

Usage

new_choicer_sim(data, true_params, settings, model)

Arguments

data

A data.table of simulated choice observations.

true_params

Named list of true DGP parameters (e.g. beta, delta, Sigma, mu, lambdas).

settings

Named list of DGP settings (e.g. N, J, K_x).

model

Character scalar: "mnl", "mxl", "nl", "mnp", "hmnl", or "hmnp".

Value

A list of class choicer_sim.