covariate_depth {mixvlmc}R Documentation

Maximal covariate memory of a VLMC with covariates

Description

This function return the longest covariate memory used by a VLMC with covariates.

Usage

covariate_depth(model)

Arguments

model

a covlmc object

Value

the longest covariate memory of this model

Examples

pc <- powerconsumption[powerconsumption$week == 5, ]
dts <- cut(pc$active_power, breaks = c(0, quantile(pc$active_power, probs = c(0.5, 1))))
m_nocovariate <- vlmc(dts)
dts_cov <- data.frame(day_night = (pc$hour >= 7 & pc$hour <= 17))
m_cov <- covlmc(dts, dts_cov, min_size = 10)
covariate_depth(m_cov)

[Package mixvlmc version 0.2.1 Index]