is_covlmc {mixvlmc}R Documentation

Test if the object is a covlmc model

Description

This function returns TRUE for VLMC models with covariates and FALSE for other objects.

Usage

is_covlmc(x)

Arguments

x

an R object.

Value

TRUE for VLMC models with covariates.

Examples

pc <- powerconsumption[powerconsumption$week == 5, ]
dts <- cut(pc$active_power, breaks = c(0, quantile(pc$active_power, probs = c(0.5, 1))))
dts_cov <- data.frame(day_night = (pc$hour >= 7 & pc$hour <= 17))
m_cov <- covlmc(dts, dts_cov, min_size = 5)
# should be true
is_ctx_tree(m_cov)
# should be true
is_covlmc(m_cov)
# should be false
is_vlmc(m_cov)

[Package mixvlmc version 0.2.1 Index]