Description Usage Arguments Details Value Warning Note Author(s) References See Also Examples
View source: R/monreg.wrapper.R
Uses cross validation to select the optimal value of a tuning parameter in the monreg function.
1 | monreg.wrapper(x, y, hr.vals = seq(0.01, 0.4, l = 40), x0, folds = 5)
|
x |
predictor values |
y |
response values |
hr.vals |
values of the tuning parameter to evaluate using cross validation |
x0 |
|
folds |
number of folds to use in the cross-validation procedure |
None.
Returns a monreg
.
As of the current version of the srbern
package, the monreg
function in the monreg
package has a memory leak in its C
code. Calling the monreg
function multiple times (e.g. in a simulation) will eventually consume all of the RAM on your computer and crash R
.
None.
S. McKay Curtis
Dette, H., Neumeyer, N., Pilz, K. F. (2006). "A simple nonparametric estimator of a strictly monotone regression function." Bernoulli 12(3), 469-490.
1 | ## See examples for bisoreg ##
|
Loading required package: bootstrap
Loading required package: monreg
Loading required package: R2WinBUGS
Loading required package: coda
Loading required package: boot
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.