Learn R Programming

sharpPen (version 1.9)

derivOperator: Shape Constraint Matrix Construction

Description

Construct a shape constraint matrix at a corresponding sequence of x data and sequence of gridpoint z.

Usage

derivOperator(penalty,gamma,h, xx,zz,p)

Value

shape constraint matrix

Arguments

penalty

the type of shape constraint, can be "drv1", "drv2", "drv3", "drv4", "Exponential" and "Periodicity".

gamma

the shape constraint parameter

h

the kernel bandwidth smoothing parameter.

xx

numeric vector of x data. Missing values are not accepted.

zz

numeric vector of gridpoint z data. Missing values are not accepted.

p

degree of local polynomial used.

Author

X.J. Hu