is_covlmc | R Documentation |
This function returns TRUE
for VLMC models with covariates and FALSE
for other objects.
is_covlmc(x)
x |
an R object. |
TRUE
for VLMC models with covariates.
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.