Learn R Programming

vardpoor (version 0.3.4)

lin.ratio: Linearization of the ratio estimator

Description

Computes linearized variable for the ratio estimator.

Usage

lin.ratio(Y, Z, weight, Dom=NULL)

Arguments

Y
Matrix of numerator variables. Any object convertible to data.table with numeric values, NA values are not allowed.
Z
Matrix of denominator variables. Any object convertible to data.table with numeric values, NA values are not allowed.
weight
Weight variable. One dimensional object convertible to one-column data.frame
Dom
Optional variables used to define population domains. If supplied, the linearized variables are computed for each domain. An object convertible to data.table

Value

  • The function returns the data.table of the linearized variables for the ratio estimator.

References

Carl-Erik Sarndal, Bengt Swensson, Jan Wretman. Model Assisted Survey Sampling. Springer-Verlag, 1992, p.178.

See Also

domain, vardom, vardomh,

Examples

Run this code
Y <- data.table(rchisq(10, 3))
Z <- data.table(rchisq(10, 3))
weights <- rep(2, 10)
lin.ratio(Y, Z, weights)

Run the code above in your browser using DataLab