dm_exact: Create a data model for a series treated as error-free

Description Usage Arguments Value Warning Examples

View source: R/datamodel-constructors.R

Description

Create a data model in which the observed data are treated as error-free and are copied straight into the account and not subsequently updated.

Usage

1
dm_exact(data, nm_series = c("births", "deaths"), nm_data = NULL)

Arguments

data

A data frame, described in data-arg.

nm_series

The name of the demographic series that data describes.

nm_data

The name of the dataset. If no value supplied, then nm_data is assumed to equal the name of the object supplied as the data argument.

Value

An object of class "dm_exact".

Warning

dm_exact is the only valid data model for births and deaths. dm_exact cannot be used for any series other than births and deaths.

Examples

1
2
3
reg_deaths <- dm_exact(data = account::gl_reg_deaths,
                       nm_series = "deaths")
reg_deaths

ONSdigital/Bayesian-demographic-accounts documentation built on Jan. 10, 2022, 12:34 a.m.