The hardware and bandwidth for this mirror is donated by dogado GmbH, the Webhosting and Full Service-Cloud Provider. Check out our Wordpress Tutorial.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]dogado.de.

muse - Multiple Unobserved Sources of Error

muse logo

License: LGPL v2.1

R-CMD-check CRAN_Status_Badge Downloads

muse is an R package implementing the PTS (Power / Trend / Seasonal) state-space family of models for time-series analysis and for forecasting. The estimation engine is written in C++ (Rcpp & RcppArmadillo), wrapping a Kalman filter/smoother around a Multiple Source of Error (MSOE) model whose components are selected analogously to the ETS taxonomy.

The package shares conventions with smooth and greybox: the returned object inherits from c("pts", "smooth") so generics such as forecast(), accuracy(), plot(), AIC(), and BIC() work out of the box.

Installation

The package is not yet on CRAN. Install the development version directly from GitHub:

# install.packages("remotes")
remotes::install_github("config-i1/muse")

Once released on CRAN:

install.packages("muse")

What’s inside

The user-facing entry point is pts(). In a single call it can:

The full method list includes print, summary, plot, coef, vcov, confint, sigma, nobs, nparam, logLik, AIC, BIC, fitted, residuals, rstandard, rstudent, pointLik, accuracy, actuals, modelType, lags, orders, errorType, outlierdummy, and update.

Quick start

library(muse)

# Fit a model with automatic Box-Cox, trend, seasonal,
# holding out the last 12 observations and forecasting them back.
model <- pts(AirPassengers, model = "ZZZ", h = 12,
             holdout = TRUE, ic = "AICc")
summary(model)
plot(forecast(model, h = 12))

# With engine-side outlier detection at the 99% confidence level
model_out <- pts(AirPassengers, model = "ZZZ", h = 12,
                 outliers = "use", level = 0.99)
model_out$outliersDetected

Reporting issues

Bug reports and feature requests are welcome at the issue tracker.

Acknowledgements

Parts of the C++ engine refactoring and the Python translation of the package were developed with the assistance of Anthropic’s Claude. Responsibility for the code and its correctness rests with the package authors.

These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.
Health stats visible at Monitor.