Learn R Programming

dcce (version 0.4.2)

.jackknife_bias_correction: Half-panel jackknife bias correction

Description

Implements the Chudik & Pesaran (2015) jackknife bias correction: b_jk = 2 * b_full - 0.5 * (b_first + b_second) where b_first and b_second are MG estimates from the first and second half of the time dimension, respectively.

Usage

.jackknife_bias_correction(
  panel,
  y_name,
  x_names,
  csa_colnames,
  unit_var,
  time_var,
  constant,
  trend,
  b_full
)

Value

A list with b_jk (bias-corrected coefficients).

Arguments

panel

A panel data.frame with all CSA columns already appended.

y_name

Character: dependent variable name.

x_names

Character: regressor names.

csa_colnames

Character: CSA column names.

unit_var

Character: unit variable name.

time_var

Character: time variable name.

constant

Logical: include intercept.

trend

Logical: include trend.

b_full

Numeric vector: full-sample MG coefficient.