Learn R Programming

CondReg (version 0.20)

kgrid: 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

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

Run the code above in your browser using DataLab