is_semiparametric {BNPdensity}R Documentation

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)

Arguments

fit

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

Value

TRUE if the fit is a semiparametric model

Examples


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

[Package BNPdensity version 2023.3.8 Index]