# ParetoII: Pareto type II distribution In CoSMoS: Complete Stochastic Modelling Solution

## Description

Provides density, distribution function, quantile function, random value generation and raw moments of order r for the Pareto type II distribution.

## Usage

 ```1 2 3 4 5 6 7 8 9``` ```dparetoII(x, scale, shape, log = FALSE) pparetoII(q, scale, shape, lower.tail = TRUE, log.p = FALSE) qparetoII(p, scale, shape, lower.tail = TRUE, log.p = FALSE) rparetoII(n, scale, shape) mparetoII(r, scale, shape) ```

## Arguments

 `x, q` vector of quantiles. `scale, shape` scale and shape parameters; the shape argument cannot be a vector (must have length one). `log, log.p` logical; if TRUE, probabilities p are given as log(p). `lower.tail` logical; if TRUE (default), probabilities are P[X ≤ x] otherwise, P[X > x]. `p` vector of probabilities. `n` number of observations. If `length(n) > 1`, the length is taken to be the number required. `r` raw moment order

## Examples

 ``` 1 2 3 4 5 6 7 8 9 10 11``` ```## plot the density ggplot(data.frame(x = c(0, 20)), aes(x)) + stat_function(fun = dparetoII, args = list(scale = 1, shape = .3), colour = 'royalblue4') + labs(x = '', y = 'Density') + theme_classic() ```

CoSMoS documentation built on May 30, 2021, 1:06 a.m.