pdf_fun: Function factory for density functions

View source: R/likelihood_copula_models.R

pdf_funR Documentation

Function factory for density functions

Description

Function factory for density functions

Usage

pdf_fun(para, family)

Arguments

para

Parameter vector.

family

Distributional family, one of the following:

  • "normal": normal distribution where para[1] is the mean and para[2] is the standard deviation.

  • "logistic": logistic distribution as parameterized in stats::plogis() where para[1] and para[2] correspond to location and scale, respectively.

  • "t": t distribution as parameterized in stats::pt() where para[1] and para[2] correspond to ncp and df, respectively.

Value

A density function that has a single argument. This is the vector of values in which the density function is evaluated.


Surrogate documentation built on June 22, 2024, 9:16 a.m.