freqCalc {sdcMicro}R Documentation

Frequencies calculation for risk estimation

Description

Computation of frequencies (counts) with which is needed for risk estimation

Usage

freqCalc(x, keyVars = 1:3, w = 4)

Arguments

x data frame or matrix
keyVars key variables
w column index of the weight variable. Should be set to NULL if one deal with the whole population.

Details

Value

Object from class freqCalc.

freqCalc data
keyVars keyVars
w index of weight vector. NULL if you do not a sample.
indexG
fk the frequency of equal observations in the key variables subset sample given for each observation.
Fk estimated frequency in the population
n1 amount of observations with fk=1
n2 amount of observations with fk=2

Author(s)

Matthias Templ

References

look e.g. in http://neon.vb.cbs.nl/casc/Deliv/12d1.pdf

See Also

indivRisk

Examples

data(francdat)
f <- freqCalc(francdat, keyVars=c(2,4,5,6),w=8)
f
f$freqCalc
f$fk
f$Fk

[Package sdcMicro version 1.3.1 Index]