"rat"
)
and compute a pooled estimate.
"pool"(...)
"rat"
.
pool
is generic. This is the method for the
class "rat"
of ratio objects. It is used to
combine several estimates of the same quantity
when each estimate is a ratio. Each of the arguments ...
must be an object of class
"rat"
representing a ratio object (basically a
numerator and a denominator; see rat
).
We assume that these ratios are all estimates of the same quantity.
If the objects are called $R[1], \dots, R[n]$
and if $R[i]$ has numerator $Y[i]$ and
denominator $X[i]$, so that notionally
$R[i] = Y[i]/X[i]$, then the pooled estimate is the
ratio-of-sums estimator
This calculation is implemented only for certain classes of objects
where the arithmetic can be performed.
This calculation is currently implemented only for objects which
also belong to the class "fv"
(function value tables).
For example, if Kest
is called with argument
ratio=TRUE
, the result is a suitable object (belonging to the classes
"rat"
and "fv"
).
Warnings or errors will be issued if the ratio objects ...
appear to be incompatible. However, the code is not smart enough to
decide whether it is sensible to pool the data.
Cochran, W.G. (1977) Sampling techniques, 3rd edition. New York: John Wiley and Sons.
rat
,
pool
,
pool.fv
,
Kest
K1 <- Kest(runifpoint(42), ratio=TRUE, correction="iso")
K2 <- Kest(runifpoint(42), ratio=TRUE, correction="iso")
K3 <- Kest(runifpoint(42), ratio=TRUE, correction="iso")
K <- pool(K1, K2, K3)
plot(K, pooliso ~ r, shade=c("hiiso", "loiso"))
Run the code above in your browser using DataLab