ddist {PTSR}R Documentation

Reparametrized Distributions

Description

Density function and random numbers generation for models with support on the positive real line.

Usage

d.betap(x, mu, varphi, log = FALSE)

r.betap(n, mu, varphi)

d.F(x, mu, varphi, log = FALSE)

r.F(n, mu, varphi)

d.gamma(x, mu, varphi, log = FALSE)

r.gamma(n, mu, varphi)

d.invGauss(x, mu, varphi, log = FALSE)

r.invGauss(n, mu, varphi)

d.logLogis(x, mu, varphi, log = FALSE)

r.logLogis(n, mu, varphi)

d.logNorm(x, mu, varphi, log = FALSE)

r.logNorm(n, mu, varphi)

d.chi(x, mu, log = FALSE, ...)

r.chi(n, mu, ...)

d.ray(x, mu, log = FALSE, ...)

r.ray(n, mu, ...)

Arguments

x

vector of real values

mu

non-negative parameter (the distribution's mean. See ‘Details’)

varphi

non-negative parameter

log

logical; if TRUE, probabilities p are given as log(p).

n

sample size

...

for compatibility with other functions

Details

Value

For any avaliable dist, ddist gives the density and rdist generates random deviates.

The length of the result is determined by n for rdist, and is the maximum of the lengths of the numerical arguments for rdist.

The numerical arguments other than n are recycled to the length of the result. Only the first elements of the logical arguments are used.


[Package PTSR version 0.1.2 Index]