List of distributions
distlist.RmdNote that some famous non-standard distributions (Tweedie, SHASHo,
COM-Pois, Cauchy) are already implemented in RTMB; check
the distributions listed here.
Continuous distributions
bccg(mu, sigma, nu): Box-Cox Cole and Green distribution parameterised by locationmu, scalesigma, and skewnessnubcpe(mu, sigma, nu, tau): Box-Cox power exponential distribution parameterised by locationmu, scalesigma,nu, andtaubct(mu, sigma, nu, tau): Box-Cox t-distribution parameterised by locationmu, scalesigma, skewnessnu, and degrees of freedomtaubetaprime(shape1, shape2): Beta prime distribution parameterised in terms ofshape1andshape2of the corresponding Beta distributionbeta2(mu, phi): Beta distribution reparameterised by meanmuand precisionphiexgauss(mu, sigma, lambda): Exponentially modified Gaussian distribution parameterised by locationmu, scalesigma, and ratelambdafoldnorm(mu, sigma): Folded normal distribution parameterised by locationmuand scalesigmafrechet(mu, sigma, alpha): Frechet distribution parameterised by locationmu, scalesigma, and shapealphagamma2(mean, sd): Gamma distribution reparameterised by mean and standard deviationgengamma(mu, sigma, nu): Generalised gamma distribution parameterised by locationmu, scalesigma, and skewnessnugev(mu, sigma, xi): Generalised extreme value distribution parameterised by locationmu, scalesigma, and shapexigpd(mu, sigma, xi): Generalised Pareto distribution parameterised by thresholdmu, scalesigma, and shapexigompertz(eta, b): Gompertz distribution parameterised by shapeetaand ratebgumbel(location, scale): Gumbel distribution parameterised bylocationandscalehalfcauchy(sigma): Half-Cauchy distribution parameterised by scalesigma, a standard weakly informative prior for hierarchical standard deviationshalft(df, sigma): Half-t distribution parameterised by degrees of freedomdfand scalesigmainvchisq(df, scale): Inverse Chi-squared distribution parameterised by degrees of freedomdfand optionalscaleinvgamma(shape, rate, scale): Inverse gamma distribution parameterised byshapeand eitherrateorscaleof the corresponding gamma distributioninvgauss(mean, shape): Inverse Gaussian distribution parameterised by mean and shapejsu(mu, sigma, nu, tau): Johnson SU distribution parameterised by locationmu, scalesigma, skewnessnu, and kurtosistaujsu2(mu, sigma, nu, tau): Johnson SU distribution reparameterised by meanmu, standard deviationsigma, skewnessnu, and kurtosistaukumar(a, b): Kumaraswamy distribution parameterised by shape parametersaandblaplace(mu, b): Laplace distribution parameterised by locationmuand scalebllogis(alpha, beta): Log-logistic distribution parameterised by scalealpha(equal to the median) and shapebetaoibeta(shape1, shape2, oneprob): One-inflated beta distribution parameterised by shape parametersshape1,shape2and one-probabilityoneproboibeta2(mu, phi, oneprob): One-inflated beta distribution reparameterised by meanmu, precisionphi, and one-probabilityoneprobpareto(mu): Pareto distribution parameterised bymupowerexp(mu, sigma, nu): Power exponential distribution parameterised by meanmu, standard deviationsigmaand shapenupowerexp2(mu, sigma, nu): Power exponential distribution reparameterised by locationmu, scalesigmaand shapenupgweibull(scale, shape, powershape): Power generalised Weibull distribution parameterised byscale,shapeandpowershapeskewnorm(xi, omega, alpha): Skew normal distribution parameterised by locationxi, scaleomegaand skewnessalphaskewnorm2(mean, sd, alpha): Skew normal distribution reparameterised by mean, standard deviation and skewnessalphaskewt(mu, sigma, skew, df): Skew t-distribution parameterised by locationmu, scalesigma, skewnessskewand degrees of freedomdfskewt2(mean, sd, skew, df): Skew t-distribution reparameterised by mean, standard deviation, skewnessskewand degrees of freedomdftruncnorm(mean, sd, min, max): Truncated normal distribution parameterised by mean, standard deviation, lower boundminand upper boundmaxtrunct(df, min, max): Truncated t-distribution parameterised by degrees of freedomdf, lower boundminand upper boundmaxtrunct2(df, mu, sigma, min, max): Truncated t-distribution parameterised locationmu, scalesigma, degrees of freedomdf, lower boundminand upper boundmaxt2(mu, sigma, df): Non-central and scaled t-distribution parameterised by locationmu, scalesigmaand degrees of freedomdfvm(mu, kappa): Von Mises distribution parameterised by mean directionmuand concentrationkappawrpcauchy(mu, rho): Wrapped Cauchy distribution parameterised by mean directionmuand concentrationrhozibeta(shape1, shape2, zeroprob): Zero-inflated beta distribution parameterised by shape parametersshape1,shape2and zero-probabilityzeroprobzibeta2(mu, phi, zeroprob): Zero-inflated beta distribution reparameterised by meanmu, precisionphi, and zero-probabilityzeroprobzigamma(shape, scale, zeroprob): Zero-inflated gamma distribution parameterised by shape, scale, and zero-probabilityzeroprobzigamma2(mean, sd, zeroprob): Zero-inflated gamma distribution reparameterised by mean, standard deviation, and zero-probabilityzeroprobziinvgauss(mean, shape, zeroprob): Zero-inflated inverse Gaussian distribution parameterised by mean, shape, and zero-probabilityzeroprobzilnorm(meanlog, sdlog, zeroprob): Zero-inflated log normal distribution parameterised by meanlog, sdlog, and zero-probabilityzeroprobziweibull(shape, scale, zeroprob): Zero-inflated Weibull distribution parameterised by shape, scale, and zero-probabilityzeroprobzoibeta(shape1, shape2, zeroprob, oneprob): Zero- and one-inflated beta distribution parameterised by shape parametersshape1,shape2, zero-probabilityzeroproband one-probabilityoneprobzoibeta2(mu, phi, zeroprob, oneprob): Zero- and one-inflated beta distribution reparameterised by meanmu, precisionphi, zero-probabilityzeroproband one-probabilityoneprob
Discrete distributions
bell(theta): Bell distribution for overdispersed counts, parameterised bythetabell2(mu): Bell distribution reparameterised by meanmubetabinom(size, shape1, shape2): Beta-binomial distribution parameterised by sizesize, shape parametersshape1andshape2bnbinom(size, shape1, shape2): Beta-negative binomial distribution parameterised bysizeand the shape parametersshape1andshape2of the beta priorbnbinom2(mu, sigma, nu): Beta-negative binomial distribution reparameterised by meanmuand dispersion parameterssigmaandnuwaring(mu, sigma): Waring (beta-geometric) distribution parameterised by meanmuand dispersionsigmayules(shape): Yule-Simon distribution parameterised byshape, supported on the positive integerscombinom(size, prob, nu): Conway-Maxwell-binomial distribution parameterised by sizesize, success probabilityproband dispersionnugenpois(lambda, phi): Generalised Poisson distribution parameterised by meanlambdaand dispersionphinbinom2(mu, size): Negative binomial distribution reparameterised by meanmuand sizesizeskellam(mu1, mu2): Skellam distribution parameterised by Poisson meansmu1andmu2zibinom(size, prob, zeroprob): Zero-inflated binomial distribution parameterised by sizesize, success probabilityproband zero-probabilityzeroprobzinbinom(size, prob, zeroprob): Zero-inflated negative binomial distribution parameterised by sizesize, success probabilityproband zero-probabilityzeroprobzinbinom2(mu, size, zeroprob): Zero-inflated negative binomial distribution reparameterised by meanmu, sizesizeand zero-probabilityzeroprobhbetabinom(size, shape1, shape2, zeroprob): Hurdle (zero-altered) beta-binomial distributionhbinom(size, prob, zeroprob): Hurdle (zero-altered) binomial distribution parameterised bysize,proband the probability of a zerozeroprobhnbinom(size, prob, zeroprob): Hurdle (zero-altered) negative binomial distribution parameterised bysize,proband the probability of a zerozeroprobhnbinom2(mu, size, zeroprob): Hurdle (zero-altered) negative binomial distribution reparameterised by the untruncated meanmu,sizeand the probability of a zerozeroprobhgeom(prob, zeroprob): Hurdle (zero-altered) geometric distributionhpois(lambda, zeroprob): Hurdle (zero-altered) Poisson distribution parameterised by the Poisson meanlambdaand the probability of a zerozeroprobzibetabinom(size, shape1, shape2, zeroprob): Zero-inflated beta-binomial distributiongeom.ad(prob): AD-compatible geometric density and distribution function (dgeom.ad(),pgeom.ad());stats’ owndgeom()/pgeom()are left untouchedzigeom(prob, zeroprob): Zero-inflated geometric distributionzipois(lambda, zeroprob): Zero-inflated Poisson distribution parameterised by ratelambdaand zero-probabilityzeroprobztbetabinom(size, shape1, shape2): Zero-truncated beta-binomial distributionztgeom(prob): Zero-truncated geometric distributionztbinom(size, prob): Zero-truncated binomial distribution parameterised by sizesizeand success probabilityprobztnbinom(size, prob): Zero-truncated negative binomial distribution parameterised by sizesizeand success probabilityprobztnbinom2(mu, size): Zero-truncated negative binomial distribution reparameterised by meanmuand sizesizeztpois(lambda): Zero-truncated Poisson distribution parameterised by ratelambda
Multivariate distributions
dirichlet(alpha): Dirichlet distribution parameterised by concentration parameter vectoralphadirmult(size, alpha): Dirichlet-multinomial distribution parameterised bysizeand concentration parametersalphamvt(mu, Sigma, df): Multivariate t-distribution parameterised by locationmu, scale matrixSigmaand degrees of freedomdfvmf(mu, kappa): Multivariate von Mises-Fisher distribution parameterised by unit mean vectormuand concentrationkappavmf2(theta): Multivariate von Mises-Fisher distribution parameterised by parameterthetaequal to unit mean vectormutimes concentration scalarkappawishart(nu, Sigma): Wishart distribution parameterised by degrees of freedomnuand scale matrixSigma
Copulas
Bivariate copulas can be implemented in a modular way using the dcopula function
together with one of the copula constructors below. Available copula
constructors are:
-
cgaussian(rho)(Gaussian copula) -
cclayton(theta)(Clayton copula) -
cgumbel(theta)(Gumbel copula) -
cfrank(theta)(Frank copula)
For a circular and a linear margin, such as turning angles and step
lengths, there are two circular-linear copula constructors. The circular
margin has to be the first one in dcopula.
-
cjw(g, ...)(Johnson-Wehrly copula with circular binding densityg, e.g.dvmordwrpcauchy) -
cfold(copula)(folds one of the copulas above into a circular-linear copula that is symmetric in the sign of the angle)
For bivariate copulas with discrete margins, use the ddcopula function
instead. In this case, instead of copula densities, copula
CDFs are needed. The available constructors for this are:
Multivariate copulas are also possible using the dmvcopula function
together with one of the multivariate copula constructors below.
Currently, only the multivariate Gaussian copula is implemented in two
ways:
-
cmvgauss(R)(multivariate Gaussian copula parameterised by a correlation matrix) -
cgmrf(Q)(multivariate Gaussian copula parameterised by an inverse correlation matrix)