h_opt_density_res
calculates theoretical optimal bandwidth for restricted
model.
h_opt_density_res(
p,
N,
dgp_F1_l,
dgp_F1_r,
dgp_Fp1_l,
dgp_Fp1_r,
kernel = "triangular"
)
Integer, polynomial order.
Integer, sample size.
String, the kernel function, can be triangular
(default),
uniform
or epanechnikov
.
Numeric vector or data matrix, the running variable.
Numeric, theoretical d.g.p.
Numeric, lower and upper boundaries.
Returns MSE optimal bandwidth.
This is an internal function, and should not be called by users.