kernel_optimal_bandwidth: find optimal bandwith doing leave-one-out cross validation inputs: * data: data matrix * depvar: column vector or empty (""). If empty, do kernel density, orherwise, kernel regression * kernel (optional, string) the kernel function to use output: * h: the optimal bandwidth
Package: econometrics