Learn R Programming

BNPdensity (version 2023.3.8)

give_kernel_name: Gives the kernel name from the integer code

Description

This function is used in the print methods for MixNRMI1, MixNRMI2, MixNRMI1cens, MixNRMI2cens, and all the multMixNRMIx versions

Usage

give_kernel_name(distr.k)

Value

A character with the name of the distribution used as the kernel

Arguments

distr.k

The distribution name for the kernel. Allowed names are "normal", "gamma", "beta", "double exponential", "lognormal" or their common abbreviations "norm", "exp", or an integer number identifying the mixture kernel: 1 = Normal; 2 = Gamma; 3 = Beta; 4 = Double Exponential; 5 = Lognormal.

Examples

Run this code
BNPdensity:::give_kernel_name(4)

Run the code above in your browser using DataLab