
Maximum-score estimator for panel binary response
Source:R/horowitz_native4.R
morie_panel_max_score.Rd\(S_{ms,pan}(b) = n^{-1}\sum_i\sum_{t>r}(Y_{it} - Y_{ir}) 1\{W_{itr}'b \ge 0\}\) with \(W_{itr} = X_{it} - X_{ir}\) (4.39), maximised subject to \(|b_1| = 1\); the smoothed form (4.40) replaces the indicator with \(K(W_{itr}'b/h_n)\).
Usage
morie_panel_max_score(
x,
y,
n_periods,
smoothed = TRUE,
h = NULL,
n_restarts = 8L,
seed = 0L
)Arguments
- x
numeric array (n, T, d) or matrix (n*T, d) with each individual's T rows contiguous.
- y
binary responses shaped to match x.
- n_periods
number of periods T, at least 2.
- smoothed
use (4.40) rather than the discontinuous (4.39).
- h
bandwidth for the smoothed form;
n^(-1/5)when NULL.- n_restarts
restarts, since (4.39) is a step function.
- seed
RNG seed for the restarts.
Value
list: beta, score, n_pairs, n_discordant_pairs, unidentified_columns, intercept_identified, smoothed, bandwidth, rate_exponent, n, T, d, method.
Details
Differencing removes the individual effect \(U_i\) entirely: no
distributional assumption on it is needed and it may be correlated
with the regressors. The same differencing costs what a linear
fixed-effects model gives up – an intercept is not identified,
regressors constant within an individual are not identified, and
only pairs with \(Y_{it} \ne Y_{ir}\) contribute. Constant
columns are detected and named rather than silently estimated.
Mirrors morie.fn.hrzpanms.