summary.ipf: Generate summary output for a ipf calibration

View source: R/summary.ipf.R

summary.ipfR Documentation

Generate summary output for a ipf calibration

Description

Generate summary output for a ipf calibration

Usage

## S3 method for class 'ipf'
summary(object, ...)

Arguments

...

additional arguments

x

object of class ipf

Value

a list of the following outputs

Author(s)

Laura Gruber

Examples


## Not run: 
# load data
eusilc <- demo.eusilc(n = 1, prettyNames = TRUE)

# personal constraints
conP1 <- xtabs(pWeight ~ age, data = eusilc)
conP2 <- xtabs(pWeight ~ gender + region, data = eusilc)
conP3 <- xtabs(pWeight*eqIncome ~ gender, data = eusilc)

# household constraints
conH1 <- xtabs(pWeight ~ hsize + region, data = eusilc)

# simple usage ------------------------------------------

calibweights1 <- ipf(
  eusilc,
  conP = list(conP1, conP2, eqIncome = conP3),
  bound = NULL,
  verbose = TRUE
)
output <- summary(calibweights1)
# the output can easily be exported to an Excel file, e.g. with
# library(openxlsx)
# write.xlsx(output, "SummaryIPF.xlsx")

## End(Not run)

statistikat/surveysd documentation built on June 13, 2025, 10:12 p.m.