Learn R Programming

rvinecopulib (version 1.0.0.1.0)

stats_margin: Create a fixed margin from a stats distribution

Description

stats_margin() adapts the univariate distributions documented in stats::Distributions to the fitted-margin protocol. Distribution parameters are supplied through ...; the resulting margin reports the distribution's parameter count but has no fitted log-likelihood.

Usage

stats_margin(family, ...)

Value

A fixed margin implementing the margin protocol.

Arguments

family

distribution suffix such as "norm", "pois", or "binom".

...

parameters passed to the distribution's density, CDF, and quantile functions.

Examples

Run this code
normal <- stats_margin("norm", mean = 1, sd = 2)
poisson <- stats_margin("pois", lambda = 3)
margin_info(normal)
margin_info(poisson)

Run the code above in your browser using DataLab