singleCdf-methods: Values of the cumulative density function

Description Usage Arguments Details Value Author(s) See Also Examples

Description

Returns values of the cdf for a single distribution defined by canonical parameters used in the definition of LuckModels.

Usage

1
singleCdf(object, n, y, x)

Arguments

object

An object of a class extending LuckModel, e.g., ScaledNormalLuckModel. (Plain LuckModel objects implement the general superstructure for canonical conjugate priors and thus do not specify a certain parametric family of priors.)

n, y

The canonical parameters n^(0) resp. y^(0) defining the distribution for which to calculate values of the cdf.

x

(Vector of) x values for which to calculate the cdf F(x).

Details

The object is needed for method dispatching only; its class tells singleCdf the parametric family the object represents, i.e., how to interpret the canonical parameters n^(0) and y^(0) and which functional form the cdf has for that family. n and y may thus be any value that is admissible for the parametric family, and need not be within the set of parameters defined in object.

Value

A vector of the same size of x.

Author(s)

Gero Walter

See Also

luck for a general description of the package, cdfplot for plotting sets of cdfs.

Examples

1
2
scn1 <- ScaledNormalLuckModel(n0=c(2,10), y0=c(3, 4))
singleCdf(scn1,10,4,seq(0,8,by=0.1))

luck documentation built on May 2, 2019, 4:43 p.m.