Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
onlineforecast
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
packages
onlineforecast
Commits
c3da86ec
Commit
c3da86ec
authored
1 month ago
by
pbac
Browse files
Options
Downloads
Patches
Plain Diff
Small update of documentation
parent
a5df283b
No related branches found
No related tags found
No related merge requests found
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
R/AR.R
+4
-4
4 additions, 4 deletions
R/AR.R
cran-comments.md
+3
-3
3 additions, 3 deletions
cran-comments.md
inst/CITATION
+0
-1
0 additions, 1 deletion
inst/CITATION
make.R
+11
-7
11 additions, 7 deletions
make.R
man/AR.Rd
+4
-4
4 additions, 4 deletions
man/AR.Rd
src/Makevars.win
+3
-1
3 additions, 1 deletion
src/Makevars.win
with
25 additions
and
20 deletions
R/AR.R
+
4
−
4
View file @
c3da86ec
...
@@ -13,19 +13,19 @@
...
@@ -13,19 +13,19 @@
#'
#'
#' The lags must be given according to the one-step ahead model, e.g.:
#' The lags must be given according to the one-step ahead model, e.g.:
#'
#'
#' \code{AR(lags=c(0,1))} will give: Y_{t+1|t} =
\eqn{
\phi_1
}
y_{t-0} +
\eqn{
\phi_2
}
y_{t-1} +
\eqn{
\epsilon
}
_{t+1}
#' \code{AR(lags=c(0,1))} will give:
\eqn{
Y_{t+1|t} = \phi_1 y_{t-0} + \phi_2 y_{t-1} + \epsilon_{t+1}
}
#'
#'
#' and:
#' and:
#'
#'
#' \code{AR(lags=c(0,3,12))} will give: Y_{t+1|t} =
\eqn{
\phi
}
_1 y_{t-0} +
\eqn{
\phi
}
_2 y_{t-3} +
\eqn{
\phi
}
_3 y_{t-12} +
\eqn{
\epsilon
}
_{t+1}
#' \code{AR(lags=c(0,3,12))} will give:
\eqn{
Y_{t+1|t} = \phi_1 y_{t-0} + \phi_2 y_{t-3} + \phi_3 y_{t-12} + \epsilon_{t+1}
}
#'
#'
#' Note, that
#' Note, that
#'
#'
#' For k>1 the coefficients will be fitted individually for each horizon, e.g.:
#' For k>1 the coefficients will be fitted individually for each horizon, e.g.:
#'
#'
#' \code{AR(lags=c(0,1))} will be the multi-step AR: Y_{t+k|t} =
\eqn{
\phi
}
_{1,k} y_{t-0} +
\eqn{
\phi
}
_{2,k} y_{t-1} +
\eqn{
\epsilon
}
_{t+k|t}
#' \code{AR(lags=c(0,1))} will be the multi-step AR:
\eqn{
Y_{t+k|t} = \phi_{1,k} y_{t-0} + \phi_{2,k} y_{t-1} + \epsilon_{t+k|t}
}
#'
#'
#' See the details in
??(ref til vignette)
.
#' See the details in
examples on \url{https://onlineforecasting.org}
.
#'
#'
#' @title Auto-Regressive (AR) input
#' @title Auto-Regressive (AR) input
#' @param lags integer vector: The lags of the AR to include.
#' @param lags integer vector: The lags of the AR to include.
...
...
This diff is collapsed.
Click to expand it.
cran-comments.md
+
3
−
3
View file @
c3da86ec
#----------------------------------------------------------------
#----------------------------------------------------------------
# v1.0.2
# v1.0.2
Updated package documentation to fix:
Updated package documentation to fix:
You have file
You have file
'onlineforecast/man/onlineforecast.Rd' with
'onlineforecast/man/onlineforecast.Rd' with
\d
ocType{package}, likely intended as a package
\d
ocType{package}, likely intended as a package
overview help file, but without the appropriate
overview help file, but without the appropriate
PKGNAME-package
\a
lias as per "Documenting packages"
PKGNAME-package
\a
lias as per "Documenting packages"
in R-exts.
in R-exts.
..
From email:
From: Kurt Hornik
From: Kurt Hornik
<Kurt.Hornik@wu.ac.at>
Sent: 19 August 2023 10:53
<Kurt.Hornik@wu.ac.at>
Sent: 19 August 2023 10:53
AMTo: Peder Bacher
<pbac@dtu.dk>
Cc:
AMTo: Peder Bacher
<pbac@dtu.dk>
Cc:
...
...
This diff is collapsed.
Click to expand it.
inst/CITATION
+
0
−
1
View file @
c3da86ec
...
@@ -6,7 +6,6 @@ bibentry(
...
@@ -6,7 +6,6 @@ bibentry(
year = "2023",
year = "2023",
volume = "15/1",
volume = "15/1",
pages = "173-194",
pages = "173-194",
doi = "10.32614/RJ-2023-031",
url = "https://journal.r-project.org/articles/RJ-2023-031/"
url = "https://journal.r-project.org/articles/RJ-2023-031/"
)
)
bibentry(
bibentry(
...
...
This diff is collapsed.
Click to expand it.
make.R
+
11
−
7
View file @
c3da86ec
...
@@ -15,6 +15,7 @@
...
@@ -15,6 +15,7 @@
## install.packages("data.table")
## install.packages("data.table")
## install.packages("plotly")
## install.packages("plotly")
## install.packages("pbs")
## install.packages("pbs")
## install.packages("V8")
#----------------------------------------------------------------
#----------------------------------------------------------------
# Go
# Go
...
@@ -22,9 +23,9 @@ library(devtools)
...
@@ -22,9 +23,9 @@ library(devtools)
library
(
roxygen2
)
library
(
roxygen2
)
# Load the package directly
# Load the package directly
document
()
##
document()
pack
<-
as.package
(
"../onlineforecast"
)
##
pack <- as.package("../onlineforecast")
load_all
(
pack
)
##
load_all(pack)
# ----------------------------------------------------------------
# ----------------------------------------------------------------
...
@@ -74,8 +75,8 @@ build(".", vignettes=TRUE)
...
@@ -74,8 +75,8 @@ build(".", vignettes=TRUE)
gzfile
<-
paste0
(
"../onlineforecast_"
,
ver
,
".tar.gz"
)
gzfile
<-
paste0
(
"../onlineforecast_"
,
ver
,
".tar.gz"
)
# Install it
# Install it
install.packages
(
gzfile
)
#
install.packages(gzfile)
library
(
onlineforecast
)
#
library(onlineforecast)
# ----------------------------------------------------------------
# ----------------------------------------------------------------
...
@@ -88,13 +89,16 @@ library(onlineforecast)
...
@@ -88,13 +89,16 @@ library(onlineforecast)
# ----------------------------------------------------------------
# ----------------------------------------------------------------
# Test before release
# Test before release
devtools
::
check
()
# Online, receive email (builds again, so when ok, then build the package file again above before submit!)
devtools
::
check_win_devel
()
# Check the build locally
devtools
::
check_built
(
gzfile
)
devtools
::
check_built
(
gzfile
)
# Does give different results than check() above
# Does give different results than check() above
#system(paste0("R CMD check --as-cran ",gzfile))
#system(paste0("R CMD check --as-cran ",gzfile))
system
(
paste0
(
"R CMD check "
,
gzfile
))
system
(
paste0
(
"R CMD check
--as-cran
"
,
gzfile
))
unlink
(
"onlineforecast.Rcheck/"
,
recursive
=
TRUE
)
unlink
(
"onlineforecast.Rcheck/"
,
recursive
=
TRUE
)
# Use for more checking:
# Use for more checking:
...
...
This diff is collapsed.
Click to expand it.
man/AR.Rd
+
4
−
4
View file @
c3da86ec
...
@@ -23,19 +23,19 @@ does the needed lagging.
...
@@ -23,19 +23,19 @@ does the needed lagging.
The lags must be given according to the one-step ahead model, e.g.:
The lags must be given according to the one-step ahead model, e.g.:
\code{AR(lags=c(0,1))} will give: Y_{t+1|t} =
\eqn{
\phi_1
}
y_{t-0} +
\eqn{
\phi_2
}
y_{t-1} +
\eqn{
\epsilon
}
_{t+1}
\code{AR(lags=c(0,1))} will give:
\eqn{
Y_{t+1|t} = \phi_1 y_{t-0} + \phi_2 y_{t-1} + \epsilon_{t+1}
}
and:
and:
\code{AR(lags=c(0,3,12))} will give: Y_{t+1|t} =
\eqn{
\phi
}
_1 y_{t-0} +
\eqn{
\phi
}
_2 y_{t-3} +
\eqn{
\phi
}
_3 y_{t-12} +
\eqn{
\epsilon
}
_{t+1}
\code{AR(lags=c(0,3,12))} will give:
\eqn{
Y_{t+1|t} = \phi_1 y_{t-0} + \phi_2 y_{t-3} + \phi_3 y_{t-12} + \epsilon_{t+1}
}
Note, that
Note, that
For k>1 the coefficients will be fitted individually for each horizon, e.g.:
For k>1 the coefficients will be fitted individually for each horizon, e.g.:
\code{AR(lags=c(0,1))} will be the multi-step AR: Y_{t+k|t} =
\eqn{
\phi
}
_{1,k} y_{t-0} +
\eqn{
\phi
}
_{2,k} y_{t-1} +
\eqn{
\epsilon
}
_{t+k|t}
\code{AR(lags=c(0,1))} will be the multi-step AR:
\eqn{
Y_{t+k|t} = \phi_{1,k} y_{t-0} + \phi_{2,k} y_{t-1} + \epsilon_{t+k|t}
}
See the details in
??(ref til vignette)
.
See the details in
examples on \url{https://onlineforecasting.org}
.
}
}
\examples{
\examples{
...
...
This diff is collapsed.
Click to expand it.
src/Makevars.win
+
3
−
1
View file @
c3da86ec
...
@@ -8,7 +8,9 @@
...
@@ -8,7 +8,9 @@
##
##
## And with R 3.4.0, and RcppArmadillo 0.7.960.*, we turn C++11 on as OpenMP
## And with R 3.4.0, and RcppArmadillo 0.7.960.*, we turn C++11 on as OpenMP
## support within Armadillo prefers / requires it
## support within Armadillo prefers / requires it
CXX_STD = CXX11
##
## In R 4.0, C++11 became the minimum supported compiler, so SystemRequirements: C++11 was no longer necessary.
#CXX_STD = CXX11
PKG_CXXFLAGS = $(SHLIB_OPENMP_CXXFLAGS)
PKG_CXXFLAGS = $(SHLIB_OPENMP_CXXFLAGS)
PKG_LIBS = $(SHLIB_OPENMP_CXXFLAGS) $(LAPACK_LIBS) $(BLAS_LIBS) $(FLIBS)
PKG_LIBS = $(SHLIB_OPENMP_CXXFLAGS) $(LAPACK_LIBS) $(BLAS_LIBS) $(FLIBS)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment