back_trans: For discrete series, Probability Integral Transform sampling...

Description Usage Arguments Value

View source: R/utils.R

Description

For discrete series, Probability Integral Transform sampling maps observations onto a Uniform distribution that is then mapped onto a Gaussian distribution for modelling. This is essentially a copula method where we assume the 'marginal' is a discrete distribution. This function takes an approximately Gaussian series, usually a prediction from a model, and back-transforms it to the discrete distribution that was originally estimated.

Usage

1
back_trans(x, params)

Arguments

x

vector containing the approximately Gaussian values to be back-transformed

params

the original estimated discrete distribution parameter(s). If the original was Negative Binomially distributed, params will be a list of length 2.

Value

A vector containing the estimated discrete values for x


nicholasjclark/mvforecast documentation built on Dec. 22, 2021, 2:11 a.m.