mydata <- c(1:100, 1000)
mydataWithNAs <- mydata
mydataWithNAs[c(1,5,7)] <- NA
weights <- rep(1, length(mydata))
quantiles <- c(0.01, 0.05, 0.1, 0.25, 0.5, 0.75, 0.9, 0.95, 0.99)
whdquantile(
x = mydata,
w = weights,
probs = quantiles)
wthdquantile(
x = mydata,
w = weights,
probs = quantiles)
wquantile(
x = mydata,
w = weights,
probs = quantiles)
whdquantile(
x = mydataWithNAs,
w = weights,
probs = quantiles)
wthdquantile(
x = mydataWithNAs,
w = weights,
probs = quantiles)
wquantile(
x = mydataWithNAs,
w = weights,
probs = quantiles)
Run the code above in your browser using DataLab