BNPdensity (version 2023.3.8)

is_semiparametric: Tests if a fit is a semi parametric or nonparametric model.

Description

Tests if a fit is a semi parametric or nonparametric model.

Usage

is_semiparametric(fit)

Value

TRUE if the fit is a semiparametric model

Arguments

fit

The result of the fit, obtained through the function MixNRMI1 or MixNRMI2.

Examples

Run this code

set.seed(150520)
data(acidity)
x <- enzyme
out <- MixNRMI1(enzyme, extras = TRUE, Nit = 10)
BNPdensity:::is_semiparametric(out)

Run the code above in your browser using DataLab