Description Usage Arguments Details Value Examples
Predefined functions for weighted point estimates in package surveysd
.
1 2 3 | 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
1 2 3 4 5 6 | 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.