CalibrateSSBweights: Calibration weighting

Description Usage Arguments Value Examples

View source: R/CalibrateSSB.R

Description

A wrapper of the function CalibrateSSB

Usage

1
CalibrateSSBweights(data, ..., weightsname = "calWeights")

Arguments

data

The gross sample data frame

...

Further arguments to CalibrateSSB

weightsname

Name of variable with output weights

Value

Input data extended with output weights

Examples

1
2
3
4
5
6
7
8
# Generates data  - two years
z    <- AkuData(3000)  # 3000 in each quarter
zPop <- AkuData(10000)[,1:7]

# Calibration using "survey"
a <- CalibrateSSBweights(z, calmodel = "~ sex*age",
                 partition = c("year","q"),  # calibrate within quarter
                 popData = zPop)

statisticsnorway/metodebibliotek_testing documentation built on Jan. 21, 2022, 9:24 p.m.