Selects the optimal bandwidth by minimizing the Mean Squared Error (MSE) using cross-validation.
optimize_bandwidth(
landpred_obj,
t0,
tau,
lower = 0.05,
upper = 5,
transform = identity,
reps = 50,
train_prop = 0.66
)The optimal bandwidth.
A landpred object.
The landmark time.
The prediction window.
Lower bound for bandwidth search.
Upper bound for bandwidth search.
Transformation function for the short-term event (e.g., log). Default is identity.
Number of cross-validation repetitions. Default is 50.
Proportion of data used for training in each fold. Default is 0.66.