derivOperator {sharpPen} | R Documentation |
Construct a shape constraint matrix at a corresponding sequence of x data and sequence of gridpoint z.
derivOperator(penalty,gamma,h, xx,zz,p)
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. |
shape constraint matrix
X.J. Hu