kgrid: Return a vector of grid of penalties for cross-validation

Description Usage Arguments Value Examples

View source: R/condreg.R

Description

Return a vector of grid of penalties for cross-validation

Usage

1
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

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

Example output



CondReg documentation built on May 2, 2019, 4:52 a.m.

Related to kgrid in CondReg...