Skip to content

Commit

Permalink
small update
Browse files Browse the repository at this point in the history
  • Loading branch information
alexiosg committed Oct 11, 2024
1 parent 85e1436 commit a30c72c
Show file tree
Hide file tree
Showing 118 changed files with 32 additions and 9 deletions.
Empty file modified .Rbuildignore
100644 → 100755
Empty file.
2 changes: 2 additions & 0 deletions .gitignore
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,5 @@ README.Rmd
*.o
*.tmp
inst/doc
inst/.DS_Store
.DS_Store
6 changes: 3 additions & 3 deletions DESCRIPTION
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ Package: tsgarch
Type: Package
Title: Univariate GARCH Models
Version: 1.0.3
Authors@R: c(person("Alexios", "Galanos", role = c("aut", "cre","cph"), email = "alexios@4dscape.com"))
Authors@R: c(person("Alexios", "Galanos", role = c("aut", "cre","cph"), email = "alexios@4dscape.com", comment = c(ORCID = "0009-0000-9308-0457")))
Maintainer: Alexios Galanos <alexios@4dscape.com>
Depends: R (>= 3.5.0), methods, tsmethods
Depends: R (>= 3.5.0), methods, tsmethods (>= 1.0.2)
LinkingTo: Rcpp (>= 0.10.6), TMB(>= 1.7.20), RcppEigen
Imports: TMB (>= 1.7.20), Rcpp, nloptr, Rdpack, numDeriv, xts, zoo, future.apply, future, progressr, flextable, stats, utils, data.table, tsdistributions, lubridate, sandwich
Description: Multiple flavors of the Generalized Autoregressive Conditional Heteroskedasticity (GARCH) model with a large choice of conditional distributions. Methods for specification, estimation, prediction, filtering, simulation, statistical testing and more. Represents a partial re-write and re-think of 'rugarch', making use of automatic differentiation for estimation.
Expand All @@ -13,7 +13,7 @@ Encoding: UTF-8
LazyData: true
BugReports: https://github.com/tsmodels/tsgarch/issues
RdMacros: Rdpack
RoxygenNote: 7.3.1
RoxygenNote: 7.3.2
Roxygen: list(markdown = TRUE)
ByteCompile: true
URL: https://github.com/tsmodels/tsgarch
Expand Down
Empty file modified NAMESPACE
100644 → 100755
Empty file.
3 changes: 2 additions & 1 deletion NEWS.md
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# tsgarch 1.0.3

* Added the log-likelihood vector to the returned fitted and filtered object
as this will be needed in the calculation of the standard errors in the
as this will be needed in the calculation of the standard errors in the upcoming
multivariate GARCH package.
* Added an extra option to the estimation method which adds the TMB object
to the returned estimation object. This can then be used to directly vary
Expand All @@ -22,6 +22,7 @@ is best approximated by the bootstrapped residuals rather than the imposed
parametric distribution with estimated parameters.
* For the bootstrap simulated prediction, the re-sampled standardized innovations
are now scaled to avoid bias.
* Fix to h=1 and nsim. Previously when h=1, nsim was set to zero.

# tsgarch 1.0.2

Expand Down
Empty file modified R/backtest.R
100644 → 100755
Empty file.
Empty file modified R/benchmark.R
100644 → 100755
Empty file.
Empty file modified R/constraints.R
100644 → 100755
Empty file.
Empty file modified R/data.R
100644 → 100755
Empty file.
Empty file modified R/distribution.R
100644 → 100755
Empty file.
Empty file modified R/equations.R
100644 → 100755
Empty file.
Empty file modified R/estimate.R
100644 → 100755
Empty file.
Empty file modified R/extractors.R
100644 → 100755
Empty file.
Empty file modified R/filter.R
100644 → 100755
Empty file.
Empty file modified R/initialization.R
100644 → 100755
Empty file.
Empty file modified R/likelihood.R
100644 → 100755
Empty file.
2 changes: 1 addition & 1 deletion R/methods.R
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -861,7 +861,7 @@ predict.tsgarch.estimate <- function(object, h = 1, newxreg = NULL, newvreg = NU
}
sim_method <- match.arg(sim_method[1], c("parametric","bootstrap"))
h <- max(1, as.integer(h[1]))
if (h == 1) nsim <- 0
#if (h == 1) nsim <- 0
nsim <- max(0, as.integer(nsim[1]))
block <- max(0, as.integer(block[1]))
model <- object$spec$model$model
Expand Down
Empty file modified R/multispec.R
100644 → 100755
Empty file.
Empty file modified R/newsimpact.R
100644 → 100755
Empty file.
Empty file modified R/persistance.R
100644 → 100755
Empty file.
2 changes: 1 addition & 1 deletion R/predict.R
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ simulated_distribution <- function(object, sigma, h = 1, nsim = 1,
parameter <- NULL
if (!is.null(seed)) set.seed(seed)
series_sim <- sigma_sim <- NULL
if (nsim > 0 & h > 1) {
if (nsim > 0) {
if (sim_method == "bootstrap") {
out <- garch_bootstrap(object, h = h, nsim = nsim, block = block, vreg = tail(vreg, h), seed = seed)
sigma_sim <- out$sigma
Expand Down
Empty file modified R/print.R
100644 → 100755
Empty file.
Empty file modified R/profile.R
100644 → 100755
Empty file.
Empty file modified R/reexports.R
100644 → 100755
Empty file.
Empty file modified R/sandwich.R
100644 → 100755
Empty file.
Empty file modified R/simulate.R
100644 → 100755
Empty file.
Empty file modified R/solvers.R
100644 → 100755
Empty file.
Empty file modified R/specification.R
100644 → 100755
Empty file.
Empty file modified R/tsgarch-package.R
100644 → 100755
Empty file.
Empty file modified R/unconditional.R
100644 → 100755
Empty file.
Empty file modified R/utilities.R
100644 → 100755
Empty file.
4 changes: 2 additions & 2 deletions README.md
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

[![R-CMD-check](https://github.com/tsmodels/tsgarch/actions/workflows/rcmdcheck.yaml/badge.svg)](https://github.com/tsmodels/tsgarch/actions/workflows/R-CMD-check.yaml)
[![Last-changedate](https://img.shields.io/badge/last%20change-2024--06--28-yellowgreen.svg)](/commits/master)
[![R-CMD-check](https://github.com/tsmodels/tsgarch/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/tsmodels/tsgarch/actions/workflows/R-CMD-check.yaml)
[![Last-changedate](https://img.shields.io/badge/last%20change-2024--09--22-yellowgreen.svg)](/commits/master)
[![packageversion](https://img.shields.io/badge/Package%20version-1.0.3-orange.svg?style=flat-square)](commits/master)
[![CRAN_Status_Badge](https://www.r-pkg.org/badges/version/tsgarch)](https://cran.r-project.org/package=tsgarch)

Expand Down
Empty file modified data/dmbp.rda
100644 → 100755
Empty file.
Empty file modified data/nikkei.rda
100644 → 100755
Empty file.
Empty file modified inst/REFERENCES.bib
100644 → 100755
Empty file.
Empty file modified man/AIC.Rd
100644 → 100755
Empty file.
Empty file modified man/BIC.Rd
100644 → 100755
Empty file.
Empty file modified man/as_flextable.benchmark.Rd
100644 → 100755
Empty file.
Empty file modified man/as_flextable.summary.Rd
100644 → 100755
Empty file.
Empty file modified man/benchmark_fcp.Rd
100644 → 100755
Empty file.
Empty file modified man/benchmark_laurent.Rd
100644 → 100755
Empty file.
Empty file modified man/bread.Rd
100644 → 100755
Empty file.
Empty file modified man/coef.Rd
100644 → 100755
Empty file.
Empty file modified man/confint.Rd
100644 → 100755
Empty file.
Empty file modified man/dmbp.Rd
100644 → 100755
Empty file.
Empty file modified man/estfun.Rd
100644 → 100755
Empty file.
Empty file modified man/estimate.Rd
100644 → 100755
Empty file.
Empty file modified man/fitted.Rd
100644 → 100755
Empty file.
Empty file modified man/garch_modelspec.Rd
100644 → 100755
Empty file.
Empty file modified man/halflife.Rd
100644 → 100755
Empty file.
Empty file modified man/logLik.Rd
100644 → 100755
Empty file.
Empty file modified man/newsimpact.Rd
100644 → 100755
Empty file.
Empty file modified man/nikkei.Rd
100644 → 100755
Empty file.
Empty file modified man/nloptr_options.Rd
100644 → 100755
Empty file.
Empty file modified man/nobs.Rd
100644 → 100755
Empty file.
Empty file modified man/omega.Rd
100644 → 100755
Empty file.
Empty file modified man/persistence.Rd
100644 → 100755
Empty file.
Empty file modified man/pit.Rd
100644 → 100755
Empty file.
Empty file modified man/plot.Rd
100644 → 100755
Empty file.
Empty file modified man/plot.tsgarch.estimate.Rd
100644 → 100755
Empty file.
Empty file modified man/plus-.tsgarch.spec.Rd
100644 → 100755
Empty file.
Empty file modified man/predict.Rd
100644 → 100755
Empty file.
Empty file modified man/print.Rd
100644 → 100755
Empty file.
Empty file modified man/print.summary.tsgarch.profile.Rd
100644 → 100755
Empty file.
Empty file modified man/reexports.Rd
100644 → 100755
Empty file.
Empty file modified man/residuals.Rd
100644 → 100755
Empty file.
Empty file modified man/sigma.Rd
100644 → 100755
Empty file.
Empty file modified man/simulate.Rd
100644 → 100755
Empty file.
Empty file modified man/summary.Rd
100644 → 100755
Empty file.
Empty file modified man/summary.tsgarch.profile.Rd
100644 → 100755
Empty file.
Empty file modified man/to_multi_estimate.Rd
100644 → 100755
Empty file.
Empty file modified man/tsbacktest.Rd
100644 → 100755
Empty file.
Empty file modified man/tsequation.Rd
100644 → 100755
Empty file.
Empty file modified man/tsfilter.Rd
100644 → 100755
Empty file.
2 changes: 1 addition & 1 deletion man/tsgarch-package.Rd
100644 → 100755

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Empty file modified man/tsprofile.Rd
100644 → 100755
Empty file.
Empty file modified man/unconditional.Rd
100644 → 100755
Empty file.
Empty file modified man/vcov.Rd
100644 → 100755
Empty file.
Empty file modified src/Makevars
100644 → 100755
Empty file.
Empty file modified src/Makevars.win
100644 → 100755
Empty file.
Empty file modified src/TMB/aparchfun.hpp
100644 → 100755
Empty file.
Empty file modified src/TMB/aparchjac.hpp
100644 → 100755
Empty file.
Empty file modified src/TMB/aparchkappa.h
100644 → 100755
Empty file.
Empty file modified src/TMB/cgarchfun.hpp
100644 → 100755
Empty file.
Empty file modified src/TMB/compile.R
100644 → 100755
Empty file.
Empty file modified src/TMB/distfun.h
100644 → 100755
Empty file.
Empty file modified src/TMB/egarchfun.hpp
100644 → 100755
Empty file.
Empty file modified src/TMB/egarchkappa.h
100644 → 100755
Empty file.
Empty file modified src/TMB/fgarchfun.hpp
100644 → 100755
Empty file.
Empty file modified src/TMB/fgarchjac.hpp
100644 → 100755
Empty file.
Empty file modified src/TMB/fgarchkappa.h
100644 → 100755
Empty file.
Empty file modified src/TMB/garchextra.h
100644 → 100755
Empty file.
Empty file modified src/TMB/garchfun.hpp
100644 → 100755
Empty file.
Empty file modified src/TMB/gjrgarchfun.hpp
100644 → 100755
Empty file.
Empty file modified src/TMB/gjrgarchjac.hpp
100644 → 100755
Empty file.
Empty file modified src/TMB/gjrkappa.h
100644 → 100755
Empty file.
Empty file modified src/TMB/tsgarch_TMBExports.cpp
100644 → 100755
Empty file.
Empty file modified src/filters.cpp
100644 → 100755
Empty file.
Empty file modified src/simulation.cpp
100644 → 100755
Empty file.
Empty file modified tests/longtests/test-backtest.R
100644 → 100755
Empty file.
Empty file modified tests/longtests/test-prediction.R
100644 → 100755
Empty file.
Empty file modified tests/longtests/test-profile.R
100644 → 100755
Empty file.
Empty file modified tests/testthat.R
100644 → 100755
Empty file.
Empty file modified tests/testthat/helper-global.R
100644 → 100755
Empty file.
Empty file modified tests/testthat/test-benchmarks.R
100644 → 100755
Empty file.
Empty file modified tests/testthat/test-estimation.R
100644 → 100755
Empty file.
Empty file modified tests/testthat/test-filtering.R
100644 → 100755
Empty file.
Empty file modified tests/testthat/test-newsimpact.R
100644 → 100755
Empty file.
Empty file modified tests/testthat/test-operator.R
100644 → 100755
Empty file.
Empty file modified tests/testthat/test-simulation.R
100644 → 100755
Empty file.
Empty file modified tests/testthat/test-tmb.R
100644 → 100755
Empty file.
20 changes: 20 additions & 0 deletions tsgarch.Rproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
Version: 1.0

RestoreWorkspace: Default
SaveWorkspace: Default
AlwaysSaveHistory: Default

EnableCodeIndexing: Yes
UseSpacesForTab: Yes
NumSpacesForTab: 4
Encoding: UTF-8

RnwWeave: knitr
LaTeX: XeLaTeX

AutoAppendNewline: Yes
StripTrailingWhitespace: Yes

BuildType: Package
PackageUseDevtools: Yes
PackageInstallArgs: --no-multiarch --with-keep.source
Empty file modified vignettes/.gitignore
100644 → 100755
Empty file.
Empty file modified vignettes/benchmark.Rmd
100644 → 100755
Empty file.
Empty file modified vignettes/custom.css
100644 → 100755
Empty file.
Empty file modified vignettes/demonstration.Rmd
100644 → 100755
Empty file.
Empty file modified vignettes/garch_models.Rmd
100644 → 100755
Empty file.
Empty file modified vignettes/references.bib
100644 → 100755
Empty file.

0 comments on commit a30c72c

Please sign in to comment.