estim: Generic function for estimation of population total and...

View source: R/estim.R

estimR Documentation

Generic function for estimation of population total and variance

Description

Generic function for estimation of population total and variance

Usage

estim(
  y,
  enk,
  enkl,
  method = "SRSWOR",
  estFunction,
  varFunction,
  verbose = FALSE
)

Arguments

y

numeric variable to be estimated

enk

expected value of k

enkl

expected value of k, given l

method

character selection method code e.g SRSWOR

estFunction

the function to use to estimate total given parameters y and enk

varFunction

the function to use to estimate variance given parameters y,enk and enkl

verbose

(Optional) Set to TRUE if you want informative text printed out, or FALSE if you don't. The default is FALSE.

Value

list of 7 elements including the population mean, total (and their variance), the algorithm name used and the I order inclusion probabilities

Examples

estimMC(c(3, 4, 4, 5), c(4, 4, 4, 4), c(8, 8, 8, 8))

ices-tools-dev/icesRDBES documentation built on April 17, 2025, 1:58 p.m.