Closed a-torgovitsky closed 3 years ago
My rationale for making them as a list is to cater the case when the user passes a vector to the tuning parameter kappa
.
If they do so, then each element in the list corresponds to the bounds for each tuning parameter.
For instance, if kappa = c(.1, .2)
, then r$lb.bs
will be a list of two elements, where each element contains R bootstrap bounds.
But I agree that when the user passes only one parameter, I can just make it a single vector to make things simpler and save some memory. I have just updated the code to reflect this.
I did the same for other procedures where the tuning parameter can be a vector. I will check again to turn the lists into vectors if the user only passes one tuning parameter.
Thanks!
I have also checked through the other procedures and did the same for the list objects when the tuning parameter is single-valued.
It is a list with one element. That element is a vector with 100 (for bootstrap reps) elements. Why not just make it a single vector?