PointEstimates | R Documentation |
Predefined functions for weighted point estimates in package surveysd
.
weightedRatio(x, w) weightedSum(x, w)
x |
numeric vector |
w |
weight vector |
Predefined functions are weighted ratio and weighted sum.
Each of the functions return a single numeric value
x <- 1:10 w <- 10:1 weightedRatio(x,w) x <- 1:10 w <- 10:1 weightedSum(x,w)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.