Learn R Programming

trackeR (version 0.0.3)

decreasingSmoother: Smooth a decreasing function.

Description

This smoother ensures a positive response (Poisson) that is a monotone decreasing function of x.

Usage

decreasingSmoother(x, y, k = 30, len = NULL, sp = NULL, fam = "poisson")

Arguments

x
The regressor passed on to the formula argument of scam.
y
The response passed on to the formula argument of scam.
k
Number of knots.
len
If NULL, the default, x is used for prediction. Otherwise, prediction is done over the range of x with len equidistant points.
sp
A vector of smoothing parameters passed on to scam.
fam
A family object passed on to the family argument of scam.