kgrid {CondReg}R Documentation

Return a vector of grid of penalties for cross-validation

Description

Return a vector of grid of penalties for cross-validation

Usage

kgrid(gridmax, numpts)

Arguments

gridmax

maximum value in penalty grid

numpts

number of points in penalty grid

Value

vector of penalties between 1 and approximately gridmax with logarithmic spacing

Examples

gmax <- 20 ## maximum value for the grid of points
npts <- 10 ## number of grid points returned
gridpts <- kgrid(gmax,npts)

[Package CondReg version 0.20 Index]