BNPdensity (version 2019.9.11)

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)

Arguments

fit

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

Value

TRUE if the fit is a semiparametric model

Examples

Run this code
# NOT RUN {
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 DataCamp Workspace