Learn R Programming

MultiDiscreteRNG (version 0.1.0)

validation.GPDparameters: Validate generalized Poisson parameters are within feasible ranges

Description

This helper function checks that generalized Poisson (GPD) inputs are valid before downstream probability calculations and data generation. If any check fails, the function stops with an informative error message.

Usage

validation.GPDparameters(GPD.theta.vec, GPD.lambda.vec)

Value

No return values; called it to check parameter inputs

Arguments

GPD.theta.vec

Vector of theta values

GPD.lambda.vec

Vector of lambda values

Examples

Run this code
validation.GPDparameters(GPD.theta.vec = c(3, 2), GPD.lambda.vec = c(0.4, 0.2))

Run the code above in your browser using DataLab