quantile_smooth | R Documentation |
Quantile smoothening
quantile_smooth(
x,
y,
quantile,
method = c("qgam", "Rq", "running"),
k = 5,
window = 50
)
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 |
Vector of fitted values
quantile_smooth(iris$Petal.Length, iris$Sepal.Length, quantile = .90)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.