scad_deriv: SCAD Derivative

Description Usage Arguments Value Author(s) References Examples

View source: R/workHorse.R

Description

Derivative of SCAD penalty function as described in Fan and Li (2001).

Usage

1
scad_deriv(x,lambda,a)

Arguments

x

Number to be evaluated

lambda

Tuning parameter lambda

a

Tuning parameter a. Default value of 3.7 as suggested in Fan and Li (2001)

Value

Derivative SCAD penalty function with tuning parameters lambda and "a" evaluated at "x".

Author(s)

Ben Sherwood

References

[1] Fan, J. and Li, R. (2001). Variable selection via nonconcave penalized likelihood and its oracle properties, J. Am. Statist. Ass, 96, 1348–1360.

Examples

1
2
3
scad_deriv(3,1)
scad_deriv(-3,1)
scad_deriv(.001,2)

Example output

Loading required package: quantreg
Loading required package: SparseM

Attaching package: 'SparseM'

The following object is masked from 'package:base':

    backsolve

Loading required package: regpro
Loading required package: denpro
[1] 0.2592593
[1] -0.2592593
[1] 2

rqPen documentation built on May 30, 2017, 2:02 a.m.