new_CdmNoregNbinom: Create an object of class Rcpp_CdmNoregNbinom

Description Usage Arguments Details Value

View source: R/cdm-constructors.R

Description

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

Usage

1
new_CdmNoregNbinom(counts_data, ratio, disp)

Arguments

counts_data

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

ratio

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

disp

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

Details

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

Value

An S4 object with class "Rcpp_CdmNoregNbinom"


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