rdHTgamma: The family of discrete distributions with gamma hidden...

Description Usage Arguments Details Value References Examples

View source: R/Discrete_HT_models.R

Description

Random sample generating function for the family of discrete distributions with gamma hidden truncation: parameters α,β,λ,δ, μ ≥ 0 and p,θ\in (0,1). p in (0,1).

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
rdHTgamma(
  n,
  x,
  alpha,
  beta,
  distr,
  lambda = NULL,
  prob = NULL,
  delta = NULL,
  size = NULL
)

Arguments

n

size of sample.

x

numeric truncation value which must be greater than or equal to 0.

alpha

numeric gamma shape parameter which must be greater than 0.

beta

numeric gamma rate parameter which must be greater than 0.

distr

a description of the discrete distribution which is truncated by gamma: "Poisson", "Geometric", "DPareto"(for discrete Pareto) and "nbinom" (for Negative binomial).

lambda

numeric Poisson parameter which must be greater than 0.

prob

numeric parameter between 0 and 1. Must be specified when distribution is either geometric or discrete Pareto or negative binomial.

delta

numeric discrete Pareto shape parameter which must be greater than or equal to 0.

size

numeric negative binomial parameter which must be greater than 0.

Details

rdHTgamma generates random sample from discrete Pareto distribution.

Value

vector of samples generate from discrete Pareto distribution.

References

Amponsah, C. K. and Kozubowski, T. J. (2021). Discrete Hidden Truncation models. In preparation. https://doi.org/not-done

Examples

1
2
N <- rdHTgamma(n=2, x=0.05, alpha = 1,beta = 100, distr = "Geometric",p = 0.5)
N

camponsah/BivMixDist documentation built on Nov. 15, 2021, 3:11 a.m.