MyNixOS website logo
Description

Five Novel Stochastic Regression Models with Arvind-Distributed Errors and Effects.

Implements the 'Arvind' distribution and five novel stochastic regression models that replace the traditional Gaussian error assumption with 'Arvind'-distributed errors. The 'Arvind' distribution is a flexible single-parameter continuous distribution on the positive real line characterised by a polynomial numerator with Gaussian-type decay. The package provides complete distribution functions (darvind(), parvind(), qarvind(), rarvind()), maximum likelihood estimation via fit_arvind_mle(), and five model-fitting routines: Random Walk on Coefficients via fit_rw1(), Time-Varying Coefficient Linear Model via fit_tvlm(), Simulation-Extrapolation via fit_simex(), Mixed-Effects Regression via fit_mixed(), and Regime-Switching Hidden Markov Model via fit_hmm(). Additionally provides Monte Carlo forecasting with prediction intervals via forecast_arvind(), comprehensive goodness-of-fit diagnostics (21 metrics and 25 plots) via diagnostics_arvind() and plot_arvind(), k-fold and rolling-window cross-validation via cv_arvind(), and unified model comparison via summary_arvind(). For more details see Pandey, Singh, Tyagi, and Tyagi (2024) "Modelling climate, COVID-19, and reliability data: A new continuous lifetime model under different methods of estimation", Statistics and Applications, 22(2), <https://ssca.org.in/journal.html>.

ArvindSt

ArvindSt is an R package implementing the Arvind distribution and five novel stochastic regression models with Arvind-distributed errors.

Installation

Install the development version from GitHub:

# install.packages("devtools")
devtools::install_github("shikhartyagi/ArvindSt")

Features

  • Distribution Functions: darvind(), parvind(), qarvind(), rarvind(), rarvind_centred()
  • Five Regression Models:
    • fit_rw1() — Random Walk on Coefficients
    • fit_tvlm() — Time-Varying Coefficient Linear Model
    • fit_simex() — Simulation-Extrapolation
    • fit_mixed() — Mixed-Effects Regression
    • fit_hmm() — Regime-Switching (HMM)
  • Diagnostics: diagnostics_arvind() (21 metrics), plot_arvind() (25 plots)
  • Forecasting: forecast_arvind() with Monte Carlo prediction intervals
  • Cross-Validation: cv_arvind() (k-fold and rolling-window)
  • Model Comparison: summary_arvind()

Quick Start

library(ArvindSt)

# Load example data
data(climate_consumption)

# Define formula
frm <- Consumption ~ Precip + TempMaxAvg + TempMinAvg + HumidMax + HumidAvg

# Fit all five models
m1 <- fit_rw1(frm, climate_consumption)
m2 <- fit_tvlm(frm, climate_consumption)
m3 <- fit_simex(frm, climate_consumption, me_vars = c("Precip", "TempMaxAvg"))
m4 <- fit_mixed(frm, climate_consumption, group_var = "Season")
m5 <- fit_hmm(frm, climate_consumption, nstates = 2)

# Compare all models
summary_arvind(m1, m2, m3, m4, m5)

Authors

License

MIT.

Metadata

Version

1.0.0

License

Unknown

Platforms (80)

    Darwin
    FreeBSD
    Genode
    GHCJS
    Linux
    MMIXware
    NetBSD
    none
    OpenBSD
    Redox
    Solaris
    uefi
    WASI
    Windows
Show all
  • aarch64-darwin
  • aarch64-freebsd
  • aarch64-genode
  • aarch64-linux
  • aarch64-netbsd
  • aarch64-none
  • aarch64-uefi
  • aarch64-windows
  • aarch64_be-none
  • arc-linux
  • arm-none
  • armv5tel-linux
  • armv6l-linux
  • armv6l-netbsd
  • armv6l-none
  • armv7a-linux
  • armv7a-netbsd
  • armv7l-linux
  • armv7l-netbsd
  • avr-none
  • i686-cygwin
  • i686-freebsd
  • i686-genode
  • i686-linux
  • i686-netbsd
  • i686-none
  • i686-openbsd
  • i686-windows
  • javascript-ghcjs
  • loongarch64-linux
  • m68k-linux
  • m68k-netbsd
  • m68k-none
  • microblaze-linux
  • microblaze-none
  • microblazeel-linux
  • microblazeel-none
  • mips-linux
  • mips-none
  • mips64-linux
  • mips64-none
  • mips64el-linux
  • mipsel-linux
  • mipsel-netbsd
  • mmix-mmixware
  • msp430-none
  • or1k-none
  • powerpc-linux
  • powerpc-netbsd
  • powerpc-none
  • powerpc64-linux
  • powerpc64le-linux
  • powerpcle-none
  • riscv32-linux
  • riscv32-netbsd
  • riscv32-none
  • riscv64-linux
  • riscv64-netbsd
  • riscv64-none
  • rx-none
  • s390-linux
  • s390-none
  • s390x-linux
  • s390x-none
  • sh4-linux
  • vc4-none
  • wasm32-wasi
  • wasm64-wasi
  • x86_64-cygwin
  • x86_64-darwin
  • x86_64-freebsd
  • x86_64-genode
  • x86_64-linux
  • x86_64-netbsd
  • x86_64-none
  • x86_64-openbsd
  • x86_64-redox
  • x86_64-solaris
  • x86_64-uefi
  • x86_64-windows