PPMiss

R-CMD-check

PPMiss implements the copula-based estimator for univariate long-range dependent processes introduced in Pumi, Prass, and Lopes (2024). The estimator leverages the relationship between a process’s covariance decay and parametric bivariate copulas associated with lagged variables, handling missing data and gaps directly without requiring prior imputation.

Installation

Install the released version from CRAN:

install.packages("PPMiss")

Or install the development version from GitHub:

# install.packages("remotes")
remotes::install_github("tsprass/PPMiss")

Example

library(PPMiss)

# Simulate an ARFIMA(0, 0.25, 0) series
set.seed(123)
trunc <- 5000
n <- 1000
cks <- arfima.coefs(d = 0.25, trunc = trunc)
eps <- rnorm(trunc + n)
x <- sapply(1:n, function(t) sum(cks * rev(eps[t:(t + trunc)])))

# Introduce 20% missing observations
xt <- x
xt[sample(1:n, size = round(0.2 * n))] <- NA

# Estimate d using contiguous lags (default s = 1, m = 24)
d.fit(xt = xt, copula = gauss, dCdtheta = dCtheta_gauss)

# Estimate copula parameters and d on arbitrary lags
th <- theta.fit(xt = xt, lags = c(1, 2, 5, 10, 20))
th
d.fit(xt = xt, thetas = th)

# Or obtain d, thetas, lags, and K1 in a single call
res <- d.fit(xt = xt, lags = c(1, 2, 5, 10, 20), full.output = TRUE)
res$d
res$thetas

Main functions

References

License

GPL (>= 3)