Learn R Programming

surveysd (version 1.3.1)

PointEstimates: Weighted Point Estimates

Description

Predefined functions for weighted point estimates in package surveysd.

Usage

weightedRatio(x, w)

weightedSum(x, w)

Value

Each of the functions return a single numeric value

Arguments

x

numeric vector

w

weight vector

Details

Predefined functions are weighted ratio and weighted sum.

Examples

Run this code
x <- 1:10
w <- 10:1
weightedRatio(x,w)
x <- 1:10
w <- 10:1
weightedSum(x,w)

Run the code above in your browser using DataLab