pctile: Weighted quantile of type 2 (similar to Stata _pctile)

Description Usage Arguments

View source: R/pctile.R

Description

Weighted quantile of type 2 (similar to Stata _pctile)

Usage

1
pctile(x, probs = c(0.25, 0.5, 0.75), wt = NULL, na.rm = FALSE)

Arguments

x

A vector

probs

A vector of probabilities

wt

A weight vector

na.rm

Should missing values be returned?


statar documentation built on Jan. 13, 2021, 9:33 p.m.