Calculates MSE-optimal bandwidths.
bw_MSE(
data,
grid,
p,
v,
kernel,
Cweights,
Pweights,
massPoints,
stdVar,
regularize,
nLocalMin,
nUniqueMin
)
Numeric vector: bandwidth sequence.
Numeric vector, the data.
Numeric vector, the evaluation points.
Integer, polynomial order.
Integer, order of derivative.
String, the kernel.
Numeric vector, the counterfactual weights.
Numeric vector, the survey sampling weights.
Boolean, whether whether point estimates and standard errors should be corrected if there are mass points in the data.
Boolean, whether the data should be standardized for bandwidth selection.
Boolean, whether the bandwidth should be regularized.
Nonnegative integer, minimum number of observations in each local neighborhood.
Nonnegative integer, minimum number of unique observations in each local neighborhood.