Learn R Programming

sharp (version 1.4.7)

LambdaSequence: Sequence of penalty parameters

Description

Generates a sequence of penalty parameters from extreme values and the required number of elements. The sequence is defined on the log-scale.

Usage

LambdaSequence(lmax, lmin, cardinal = 100)

Value

A vector with values between "lmin" and "lmax" and as many values as indicated by "cardinal".

Arguments

lmax

maximum value in the grid.

lmin

minimum value in the grid.

cardinal

number of values in the grid.

See Also

Other lambda grid functions: LambdaGridGraphical(), LambdaGridRegression()

Examples

Run this code
# Grid from extreme values
mygrid <- LambdaSequence(lmax = 0.7, lmin = 0.001, cardinal = 10)

Run the code above in your browser using DataLab