Learn R Programming

MMLR (version 0.2.0)

Fitting Markov-Modulated Linear Regression Models

Description

A set of tools for fitting Markov-modulated linear regression, where responses Y(t) are time-additive, and model operates in the external environment, which is described as a continuous time Markov chain with finite state space. Model is proposed by Alexander Andronov (2012) and algorithm of parameters estimation is based on eigenvalues and eigenvectors decomposition. Markov-switching regression models have the same idea of varying the regression parameters randomly in accordance with external environment. The difference is that for Markov-modulated linear regression model the external environment is described as a continuous-time homogeneous irreducible Markov chain with known parameters while switching models consider Markov chain as unobserved and estimation procedure involves estimation of transition matrix. These models have significant differences in terms of the analytical approach. Also, package provides a set of data simulation tools for Markov-modulated linear regression (for academical/research purposes). Research project No. 1.1.1.2/VIAA/1/16/075.

Copy Link

Version

Install

install.packages('MMLR')

Monthly Downloads

119

Version

0.2.0

License

GPL (>= 2)

Maintainer

Nadezda Spiridovska

Last Published

January 9th, 2020

Functions in MMLR (0.2.0)

B_est

Estimantion of unknown Markov-modulated linear regression model parameters using GLSM
Aver_soj_time

Calculating the average sojourn time in each state
VarY

Estimantion of the variance of the response Y
Xreg

Preparing data for parameter estimation procedure
randomizeX

Transformation of regressors' matrix X. Data preparation stage for simulation
randomizeTau

Transformation of the observed time vector tau. Data preparation stage for simulation
randomizeInitState

Transformation of vector with initial states I for various observations. Data preparation stage for simulation.
Ysimulation

Simulation of the vector of responses Y. Data preparation stage for simulation.