The hardware and bandwidth for this mirror is donated by METANET, the Webhosting and Full Service-Cloud Provider.
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[@]metanet.ch.
randSN() now
uses arma::randn instead of a Box-Muller transform (faster,
and avoids a log(0) edge case). IMPORTANT: this changes the
random numbers drawn for a given set.seed(), so simulated
series (the simu* functions) and Monte Carlo p-values
(LMCLRTest(), MMCLRTest(),
DLMCTest(), DLMMCTest(),
CHPTest()) differ numerically from earlier versions. Test
conclusions and validity are unaffected.MMCLRTest(): the observed likelihood ratio statistic is
now held fixed across the nuisance-parameter search, following Dufour
(2006), instead of being recomputed at each candidate value. This
corrects the maximized Monte Carlo p-value (which could previously be
slightly liberal).MMCLRTest(): pre-drawn simulation innovations are now
held fixed across the optimization (fixed-error Monte Carlo; Dufour
2006, Prop. 4.2).LMCLRTest() and MMCLRTest(): added an
mc_seed control for fully reproducible Monte Carlo
p-values; the number of parallel workers is capped at N
when more workers than replications are requested.LMCLRTest() and MMCLRTest(): robust
handling of failed simulated draws. Non-finite draws are dropped before
the p-value is computed. If the simulated null distribution cannot be
built at all (every draw fails even after the re-draw safety), the
functions now stop with an informative message (increase
use_diff_init or inspect the fit) instead of returning an
invalid value or crashing the optimizer. In MMCLRTest(), a
candidate parameter value whose null cannot be simulated is penalized so
the optimizer avoids it; the initial value (theta_0) is
exempt so that the MMC p-value remains at least as large as the LMC
p-value.MMCLRTest(): the GA optimizer now uses
popSize = 10 by default (GA’s own default of 50 makes the
search perform 50 x maxit expensive evaluations);
additional GA controls can be passed through
optim_control.MCpval(): the type argument now accepts
both long and short spellings ("geq", "leq",
"two-tailed"/"two-tail",
"absolute"/"abs") and raises an informative
error for an unrecognized value (previously it silently returned a
sentinel). The documentation now matches the accepted values.DLMMCTest(): fixed the sign of the stationarity penalty
so non-stationary candidate parameters are correctly avoided by the
optimizer (previously, in some cases the maximized p-value could be
returned as the raw penalty constant).DLMCTest() and DLMMCTest(): corrected the
sample size used to simulate the null distribution of the moment-based
statistics. The simulated moments are now computed from samples of
length T - p, matching the number of AR(p)
residuals used for the observed statistic and for the p-value
calibration in approxDistDL() (previously T).
This restores the exact exchangeability underlying the Monte Carlo
p-value (Dufour & Luger 2017); the effect is negligible for large
samples and grows with p/T.print()/summary() for
DLMMCTest objects now display the nuisance parameter value
that maximizes the Monte Carlo p-value
(theta_max_min/theta_max_prod) alongside the
moment statistics, matching the output of DLMCTest (display
only; the returned object is unchanged).conv control for the EM stopping criterion in
HMmdl(), MSARmdl(), MSARXmdl(),
MSVARmdl(), and MSVARXmdl(), with options
"loglik" (relative log-likelihood change; the new default),
"theta" (relative parameter change, the previous behavior),
"both" (both, following Krolzig 1997), and
"loglik-A"/"both-A" (Aitken-accelerated
log-likelihood; Böhning et al. 1994, McLachlan and Krishnan 2008). A
separate ltol control sets the log-likelihood tolerance
(default 1e-7); thtol (default
1e-6) remains the parameter tolerance. NOTE: the default
change from parameter-based stopping to "loglik" can change
estimates slightly for a given set.seed(); set
conv = "theta" to recover the previous behavior.
Simulations show "loglik" matches the size and power of
"theta" while converging substantially faster. Each fitted
model now also reports a converged flag.solve() with fallback),
Hamilton-filter underflow handling, degenerate-regime guards,
positive-definite covariance regularization, and stationarity checks.
Several data sets that previously triggered
solve(): solution not found now estimate successfully.MSVARXmdl() to call MSVARXmdl_em()
(not MSVARmdl_em()) in the single-initial-value EM branch
(used when use_diff_init = 1 with a user-supplied
init_theta), so exogenous regressors are handled correctly
on that path.se_method = "louis" control for the
Markov-switching model constructors (HMmdl(),
MSARmdl(), MSARXmdl(),
MSVARmdl(), MSVARXmdl()), computing
expected-complete-data standard errors (Louis 1982); automatic fallback
from the observed-information Hessian to Louis when the Hessian is
ill-conditioned.NA standard errors for
k >= 2. Per-parameter step sizes are used in the
numerical Hessian to keep transition probabilities within
[0, 1].use_diff_init >= 1
(and maxit_converge >= 1) with a clear error instead of
failing cryptically.testthat) and an introductory
vignette.README.md file with usage of new methods.DESCRIPTION file for changed dependencies and
new version.DESCRIPTION file for new version.NEWS.md file to track changes to the
package.README.md file to describe the package.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.