qdks: A quick and dirty non-parametric quantile estimator based on...

Description Usage Arguments Examples

View source: R/qdks.R

Description

This function runs a estimator of the quantiles of y depending upon x. It pools the values of y into bins based on the quantiles of x then interpolates in a linear fashion assuming the quantiles occur at the bin centre. Out of range extrapolation depends upon rule - see approx function in the stats package

Usage

1
qdks(y, x, q = seq(5, 95, 5)/100, xout = NA, rule = 2)

Arguments

y

Values whose quantiles are sought

x

Explanatory variable

q

Quantiles estimated. Default is 0.05,0.1,...,0.95

xout

Value of x to return quantiles at. NA (default) returns values for seq(min(x),max(x),length=100)

rule

See approx function in stats. default is 2, take closest end point

Examples

1
2
# Not Run
# ModelBuild()

waternumbers/FloodForT documentation built on Nov. 5, 2019, 12:07 p.m.