Skip to contents

OR estimation via local polynomial regression

Usage

locpol_or_fit(
  dp,
  bws = NULL,
  cv_type = NULL,
  list_control = list(n_start = 1, bw_constrained = FALSE, or_order = 1)
)

Arguments

dp

Data list (see dgps_did).

bws

Optional bandwidths.

cv_type

Cross-validation type ("loocv" or "rcv"). If NULL, fall back to list_control$cv_type and otherwise default to "loocv".

list_control

List with control options (e.g., n_start, bw_constrained, or_order, bw_init, bw_seed, bw_upper_cont, and rcv_train_frac).

Value

List with fitted values, bandwidths, and bandwidth-search diagnostics.