h_opt_density
calculates theoretical optimal bandwidth.
h_opt_density(x, p, N, dgp_F1, dgp_Fp1, f_low, f_up, kernel = "triangular")
Returns MSE optimal bandwidth.
Numeric vector or data matrix, the running variable.
Integer, polynomial order.
Integer, sample size.
Numeric, theoretical d.g.p.
Numeric, lower and upper boundaries.
String, the kernel function, can be triangular
(default),
uniform
or epanechnikov
.
This is an internal function, and should not be called by users.