Learn R Programming

spsurvey (version 4.0.0)

interp.cdf: Interpolate CDF Values at a Set of Percentiles

Description

This function interpolates CDF values at a set of percentiles. The CDF values can be CDF estimates, CDF confidence bound estimates, or values at which the CDF is estimated (i.e., x-axis values). It is assumed that arguments cdfest.p and cdf.value are strictly increasing.

Usage

interp.cdf(pctval, cdfest.p, cdf.value)

Arguments

pctval

Vector of percentiles (expressed as percents) at which the CDF values are to be interpolated.

cdfest.p

Vector of CDF estimates in terms of proportions.

cdf.value

Vector of CDF values to be interpolated.

Value

A numeric vector consisting of the interpolated CDF values.