decreasing_smoother: Smooth a decreasing function.

View source: R/distributionProfile.R

decreasing_smootherR Documentation

Smooth a decreasing function.

Description

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

Usage

decreasing_smoother(x, y, k = 30, len = NULL, sp = NULL)

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

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.


trackeR documentation built on May 29, 2024, 5:04 a.m.