R/choicer-package.R

#' @keywords internal
"_PACKAGE"

# Suppress R CMD check NOTEs for data.table NSE variables
utils::globalVariables(c(
  ".", "..covariate_cols", "..random_var_cols", "..show_cols",
  "HAS_NA", "N_CHOICES", "N_OBS", "alt_int", "idx_in_group",
  # HB prep NSE variables (R/hb_data.R)
  "HB_PERSON", "TASK_HAS_NA", "TASK_HAS_BAD", "task_idx", "HAS_BAD",
  "..task_by", "..x_cols", "..num_cols", "..alt_covariate_cols",
  # HB post-estimation / diagnostics NSE variables
  "covered", "observed", "lower", "upper",
  # DGP / simulation NSE variables (R/simulation.R)
  "alt", "choice", "delta_val", "epsilon", "utility", "id",
  "pid", "task", "..x_names",
  "w1", "w2", "x1", "x2", "X", "W", "V", "V_over_lambda",
  "IV", "i.IV", "nest", "nest_prob", "i.nest_prob", "log_denom",
  "cond_prob", "P_j", "j", "lambda",
  # Recovery / Monte Carlo NSE variables (R/recovery.R)
  "parameter", "converged", "estimate", "se", "true", "covers",
  "group", "rep_id", "R_success", "mean_est", "median_est",
  "sd_est", "mean_se", "bias", "rmse", "coverage"
))

## usethis namespace: start
#' @importFrom data.table :=
#' @importFrom data.table .BY
#' @importFrom data.table .EACHI
#' @importFrom data.table .GRP
#' @importFrom data.table .I
#' @importFrom data.table .N
#' @importFrom data.table .NGRP
#' @importFrom data.table .SD
#' @importFrom data.table data.table
#' @importFrom Rcpp sourceCpp
#' @importFrom stats coef logLik nobs predict vcov pnorm
#' @useDynLib choicer, .registration = TRUE
## usethis namespace: end
NULL

Try the choicer package in your browser

Any scripts or data that you put into this service are public.

choicer documentation built on Sept. 5, 2026, 1:07 a.m.