foc_membership: Verify membership of a data set in the FOC conditions

View source: R/foc_membership.R

foc_membershipR Documentation

Verify membership of a data set in the FOC conditions

Description

From the active basis, we derive the FOC conditions. If a data set satisfies the FOC conditions, then we know that the coefficients obtained from this active basis solve the IQR problem for this data set.

Usage

foc_membership(
  h,
  Y_subsample,
  X_subsample,
  D_subsample,
  Phi_subsample,
  tau,
  beta_D = h_to_beta(h, Y = Y_subsample, X = X_subsample, D = D_subsample, Phi =
    Phi_subsample)$beta_D,
  beta_X = h_to_beta(h, Y = Y_subsample, X = X_subsample, D = D_subsample, Phi =
    Phi_subsample)$beta_X
)

Arguments

h

Indices of the active basis written in terms of the subsample data (p-dimensional vector)

Y_subsample

Outcome vector in the subsample (m by 1 matrix)

X_subsample

Covariates in subsample (m by p_X matrix)

D_subsample

Endogeneous variables in subsample (m by p_D matrix)

Phi_subsample

Transformed instruments in subsample (m by p_Phi)

tau

Quantile (numeric)

beta_D

Coefficients on the endogeneous variable; ideally obtained from h (p_D by 1 matrix)

Value

Named list

  1. status: TRUE if subsample satisfies FOC conditions; FALSE otherwise

  2. xi: vector that must be contained within -tau and 1-tau to satisfy FOC conditions

See Also

Other mcmc_subsampling: foc_membership_v2(), h_to_beta()


omkarakatta/ivqr documentation built on Aug. 20, 2022, 11:04 p.m.