Function to calculate the ridge regression bandwidth

bandwidth_lpridge(t, s, h.range = c(0.01, 1), seed = 12345)

Arguments

t

Numeric vector

s

Numeric vector

h.range

values

seed

Random seed

Value

This function returns a list with the following entries:

  • h: bandwidth values

  • cverror: Crossvalidation error