Learn R Programming

hdMTD (version 0.1.4)

Inference for High-Dimensional Mixture Transition Distribution Models

Description

Estimates parameters in Mixture Transition Distribution (MTD) models, a class of high-order Markov chains. The set of relevant pasts (lags) is selected using either the Bayesian Information Criterion or the Forward Stepwise and Cut algorithms. Other model parameters (e.g. transition probabilities and oscillations) can be estimated via maximum likelihood estimation or the Expectation-Maximization algorithm. Additionally, 'hdMTD' includes a perfect sampling algorithm that generates samples of an MTD model from its invariant distribution. For theory, see Ost & Takahashi (2023) .

Copy Link

Version

Install

install.packages('hdMTD')

Monthly Downloads

150

Version

0.1.4

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Maiara Gripp

Last Published

December 18th, 2025

Functions in hdMTD (0.1.4)

MTD-accessors

Accessors for objects of classes "MTD", "MTDest", and/or "hdMTD"
MTD-methods

Methods for objects of class "MTD"
freqTab

A tibble containing sample sequence frequencies and estimated probabilities
hdMTD

Inference in MTD models
hdMTD-methods

Methods for objects of class "hdMTD"
plot.MTDest

Plot method for MTDest objects
plot.MTD

Plot method for MTD objects
hdMTD_FS

The Forward Stepwise (FS) method for inference in MTD models
MTDest-methods

Methods for objects of class "MTDest"
MTDest

EM estimation of MTD parameters
hdMTD_FSC

Forward Stepwise and Cut method for inference in MTD models
MTDmodel

Creates a Mixture Transition Distribution (MTD) Model
as.MTD

Coerce an EM fit to an MTD model
oscillation

Oscillations of an MTD Markov chain
perfectSample

Perfectly samples an MTD Markov chain
tempdata

Maximum temperatures in the city of Brasília, Brazil.
hdMTD_CUT

The CUT method for inference in MTD models
probs

Predictive probabilities for MTD / MTDest
hdMTD_BIC

The Bayesian Information Criterion (BIC) method for inference in MTD models
dTV_sample

The total variation distance between distributions
countsTab

Counts sequences of length d+1 in a sample
empirical_probs

Estimated transition probabilities