Learn R Programming

BNPdensity (version 2019.9.18)

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)

Arguments

distr.k

Integer number identifying the mixture kernel: 1 = Normal; 2 = Gamma; 3 = Beta; 4 = Double Exponential; 5 = Lognormal.

Value

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

Examples

Run this code
# NOT RUN {
BNPdensity:::give_kernel_name(4)
# }

Run the code above in your browser using DataLab