Learn R Programming

fDMA (version 2.2.9)

Dynamic Model Averaging and Dynamic Model Selection for Continuous Outcomes

Description

Allows to estimate dynamic model averaging, dynamic model selection and median probability model. The original methods are implemented, as well as, selected further modifications of these methods. In particular the user might choose between recursive moment estimation and exponentially moving average for variance updating. Inclusion probabilities might be modified in a way using 'Google Trends'. The code is written in a way which minimises the computational burden (which is quite an obstacle for dynamic model averaging if many variables are used). For example, this package allows for parallel computations and Occam's window approach. The package is designed in a way that is hoped to be especially useful in economics and finance. Main reference: Raftery, A.E., Karny, M., Ettler, P. (2010) .

Copy Link

Version

Install

install.packages('fDMA')

Monthly Downloads

306

Version

2.2.9

License

GPL-3

Maintainer

Krzysztof Drachal

Last Published

November 15th, 2025

Functions in fDMA (2.2.9)

altf3

Computes a Rolling Regression Averaged over Different Window Sizes.
altf4

Computes a Time-Varying Parameters Rolling Regression Averaged over Different Window Sizes.
gNormalize

Normalizes a Numeric Matrix by Rows.
grid.DMA

Computes fDMA Function for Multiple Values of alpha and lambda.
normalize

Normalizes a Numeric Matrix by Columns.
fitted.dma

Extracts Fitted Values from dma Model.
grid.tvp

Computes tvp Function for Multiple Values of lambda.
onevar

Creates a matrix of one-variable models.
grid.roll.reg

Computes roll.reg Function for Multiple Values of window.
mdmtest

Computes Harvey-Leybourne-Newbold Test.
hit.ratio

Computes Hit Ratio (HR) for Forecast.
hmdmtest

Computes Diebold-Mariano Test when Presence of ARCH Effects is Suspected.
plot.dma

Plots Selected Outcomes from fDMA Function.
plot.altf3

Plots Selected Outcomes from altf3 Object.
plot.reg

Plots Selected Outcomes from reg Object.
plot.altf2

Plots Selected Outcomes from altf2 Object.
plot.tvp

Plots Selected Outcomes from tvp Object.
plot.altf4

Plots Selected Outcomes from altf4 Object.
plot.grid.dma

Plots Selected Outcomes from grid.DMA Function.
print.reg

Prints reg Object.
print.altf

Prints altf Object.
plot.altf

Plots Selected Outcomes from altf Object.
predict.dma

Computes Predictions from dma Model.
print.grid.tvp

Prints grid.tvp Object.
print.altf3

Prints altf3 Object.
plot.grid.roll.reg

Plots Selected Outcomes from grid.roll.reg Function.
print.altf2

Prints altf2 Object.
print.grid.dma

Prints grid.dma Object.
plot.grid.tvp

Plots Selected Outcomes from grid.tvp Function.
print.grid.roll.reg

Prints grid.roll.reg Object.
print.dma

Prints dma Object.
print.altf4

Prints altf4 Object.
reduce.size

Reduces the Size of fDMA or grid.DMA Outcomes.
stest

Computes a Few Stationarity Tests.
rvi

Extracts Relative Variable Importances from fDMA Model.
residuals.dma

Extracts Residuals from dma Model.
standardize

Standardizes a Numeric Matrix by Columns.
summary.altf

Summarizes Outcomes from altf Object.
rec.reg

Computes Recursive Regression.
summary.altf2

Summarizes Outcomes from altf2 Object.
roll.reg

Computes Rolling Regression.
print.tvp

Prints tvp Object.
trends

Google Trends for Crude Oil Data.
summary.altf3

Summarizes Outcomes from altf3 Object.
summary.grid.roll.reg

Summarizes Outcomes from grid.roll.reg Objects.
summary.grid.dma

Summarizes Outcomes from grid.dma Objects.
summary.grid.tvp

Summarizes Outcomes from grid.tvp Objects.
summary.reg

Summarizes Outcomes from reg Object.
tvp

Computes Time-Varying Parameters Regression.
summary.tvp

Summarizes Outcomes from tvp Object.
summary.dma

Summarizes Outcomes from dma Object.
summary.altf4

Summarizes Outcomes from altf4 Object.
dmtest

Computes Diebold-Mariano Test.
archtest

Computes Engle's ARCH Test.
altf2

Computes a Few Alternative Forecasts Based on Model Averaging.
altf

Computes a Few Alternative Forecasts.
fDMA

Computes Dynamic Model Averaging.
crudeoil

Crude Oil Data.
descstat

Computes Basic Descriptive Statistics.
coef.dma

Extracts Averaged Coefficients from dma Model.