quantile_smooth: Quantile smoothening

quantile_smoothR Documentation

Quantile smoothening

Description

Quantile smoothening

Usage

quantile_smooth(
  x,
  y,
  quantile,
  method = c("qgam", "Rq", "running"),
  k = 5,
  window = 50
)

Arguments

x

Predictor variable

y

Outcome variable

quantile

Which quantile (e.g., .95)

method

Method to use

k

Number of knots for method qgam, see qgam::qgam

window

Window size for method running, see caTools::runquantile

Value

Vector of fitted values

Examples

quantile_smooth(iris$Petal.Length, iris$Sepal.Length, quantile = .90)

Deleetdk/kirkegaard documentation built on May 2, 2024, 7:12 p.m.