dmarg: Compute density of marginal model

View source: R/margins.R

dmargR Documentation

Compute density of marginal model

Description

Compute the density function of the marginal model.

Usage

dmarg(x, y, log = FALSE)

Arguments

x

an object of class margin.

y

vector of values for which density should be computed.

log

logical variable specifying whether log density should be returned.

Value

A vector of values for the density.

Examples

margmod <- margin("norm", pars = c(mean = 0, sd = 1))
dmarg(margmod, c(-2, 0, 2), log = TRUE)

tscopula documentation built on May 7, 2022, 5:06 p.m.