Learn R Programming

algebraic.dist (version 0.9.1)

as_dist: Convert an object to a probability distribution.

Description

Generic method for converting objects (such as fitted models) into distribution objects from the algebraic.dist package.

Usage

as_dist(x, ...)

# S3 method for dist as_dist(x, ...)

Value

A dist object.

Arguments

x

The object to convert to a distribution.

...

Additional arguments to pass to methods.

Examples

Run this code
# Identity for existing distributions
d <- normal(0, 1)
identical(as_dist(d), d)

Run the code above in your browser using DataLab