kgrid {CondReg} | R Documentation |
Return a vector of grid of penalties for cross-validation
kgrid(gridmax, numpts)
gridmax |
maximum value in penalty grid |
numpts |
number of points in penalty grid |
vector of penalties between 1 and approximately
gridmax
with logarithmic spacing
gmax <- 20 ## maximum value for the grid of points npts <- 10 ## number of grid points returned gridpts <- kgrid(gmax,npts)