new_CdmWithregNbinom: Create an object of class Rcpp_CdmWithregNbinom

Description Usage Arguments Details Value

View source: R/cdm-constructors.R

Description

Create an object of (C++) class Rcpp_CdmWithregNbinom. Objects of class Rcpp_CdmWithregNbinom are cohort-level data models, plus cohort-level data, for a single dataset. The data has a region dimension. The data model is based on a negative binomial distribution.

Usage

1
new_CdmWithregNbinom(counts_data, ratio, disp)

Arguments

counts_data

A numeric matrix of non-negative whole numbers. NAs are allowed.

ratio

A numeric matrix of non-negative numbers, with the same dimensions as counts_data. NAs are allowed at positions where counts_data is NA.

disp

A numeric matrix of non-negative numbers, with the same dimensions as counts_data. NAs are allowed at positions where codecounts_data is NA.

Details

new_CdmWithregNbinom is an internal function, and should never be needed by end users.

Value

An S4 object with class "Rcpp_CdmWithregNbinom"


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