Function to calculate the ridge regression bandwidth
bandwidth_lpridge(t, s, h.range = c(0.01, 1), seed = 12345)
t | Numeric vector |
---|---|
s | Numeric vector |
h.range | values |
seed | Random seed |
This function returns a list with the following entries:
h: bandwidth values
cverror: Crossvalidation error