Skip to content

Commit

Permalink
fix issue #1
Browse files Browse the repository at this point in the history
  • Loading branch information
GeoBosh committed Oct 24, 2024
1 parent 69b8c6b commit dbc4ebd
Show file tree
Hide file tree
Showing 7 changed files with 51 additions and 20 deletions.
7 changes: 3 additions & 4 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
Package: mixAR
Type: Package
Title: Mixture Autoregressive Models
Version: 0.22.7.9000
Date: 2022-05-05
Version: 0.22.8.9000
Authors@R: c( person(given = c("Georgi", "N."),
family = "Boshnakov",
role = c("aut", "cre"),
Expand All @@ -26,8 +25,8 @@ Imports: stats, graphics, utils, stats4, BB, combinat, timeDate,
permute, mvtnorm
Suggests: fma, testthat, covr
RdMacros: Rdpack
URL: https://geobosh.github.io/mixAR/ (website),
https://github.com/GeoBosh/mixAR/ (devel)
URL: https://geobosh.github.io/mixAR/ (doc),
https://github.com/GeoBosh/mixAR/ (devel)
BugReports: https://github.com/GeoBosh/mixAR/issues
Collate: raggedCoef.R raggedCoefS.R mixComp.R mixAR.R mixARcalc.R
mixutil.R dist.R predict.R mix_se.R obs_info_matrix.R
Expand Down
14 changes: 14 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
# mixAR 0.22.8.9000 (CRAN)

- fixed a typo in a `stop()` string
(fixes issue #1, reported by @beliavski).


# mixAR 0.22.8 (CRAN)

- fixed 'Lost braces' NOTE on CRAN.

- fixed "Documented arguments not in \usage in Rd file 'mixAR-internal.Rd':"
NOTE on CRAN.


# mixAR 0.22.7 (CRAN)

- fixed CRAN warning "`\item` in `\describe` must have non-empty label" in a
Expand Down
2 changes: 1 addition & 1 deletion R/fit_mixARreg.R
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
## It has been automatically generated from mixAR.org.

fit_mixARreg <- function(x, y, mixARmodel, EMinit, ...){
stop("There is currently no default for this funciton")
stop("There is currently no default for this function")
}
setGeneric("fit_mixARreg")

Expand Down
4 changes: 2 additions & 2 deletions R/mixAR.R
Original file line number Diff line number Diff line change
Expand Up @@ -867,7 +867,7 @@ setMethod("fit_mixAR", signature(x = "ANY", model = "MixARGaussian", init = "Mix
})

# build_mixAR <- function(x, ncomp = 2, pmax = 2, ...){
# # stop("There is currently no default for this funciton")
# # stop("There is currently no default for this function")
# if(ncomp < 2)
# ncomp <- 2
#
Expand Down Expand Up @@ -1288,7 +1288,7 @@ setMethod("show_diff", signature(model1="MixARGaussian", model2="MixARgen"),
invisible("")
})

# 2012-11-02 new arg. 'drop'
# 2012-11-02 new arg. 'drop'
parameters <- function(model, namesflag = FALSE, drop = character(0)){
coef(model)
}
Expand Down
2 changes: 1 addition & 1 deletion man/MixAR-class.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
%% ~Make other sections like Warning with \section{Warning }{....} ~

\seealso{
code{\link{mixAR}},
\code{\link{mixAR}},
classes \code{"\linkS4class{MixARGaussian}"},
\code{"\linkS4class{MixARgen}"}
}
Expand Down
9 changes: 1 addition & 8 deletions man/mixAR-internal.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,8 @@
param_score_stdt(x, nu)
}
\arguments{
\item{nu}{~~ TODO: describe this argument. ~~}
\item{p}{~~ TODO: describe this argument. ~~}
\item{value}{~~ TODO: describe this argument. ~~}
\item{x}{~~ TODO: describe this argument. ~~}
\item{tau}{~~ TODO: describe this argument. ~~}
\item{etk}{~~ TODO: describe this argument. ~~}
\item{parscore}{~~ TODO: describe this argument. ~~}
\item{sigma}{~~ TODO: describe this argument. ~~}
\item{logpdf}{~~ TODO: describe this argument. ~~}
\item{nu}{~~ TODO: describe this argument. ~~}
}
\details{
These are not to be called by the user (or in some cases are just
Expand Down
33 changes: 29 additions & 4 deletions man/mixAR-package.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,16 @@
\alias{mixAR-package}
%\alias{mixAR}
\docType{package}

\concept{mixture autoregressive model}
\concept{MAR model}
\concept{TMAR model}
\concept{mixture autoregression}

\concept{non-gaussian time series}
\concept{asymmetry in time series}
\concept{multi-modality in time series}

% attaching the package is not necessary for this file but it ensures
% that Sexpr's using functions from the package will work also in other
% Rd files, without them needing to attach the package. This is
Expand Down Expand Up @@ -236,10 +246,25 @@ Maintainer: \Sexpr[stage=build]{pd$Maintainer}

\insertRef{WongLi2001b}{mixAR}
}
% \seealso{
% ~~ Optional links to other man pages, e.g. ~~
% ~~ \code{\link[<pkg>:<pkg>-package]{<pkg>}} ~~
% }
\seealso{
fit several types of mixAR models:
\code{\link{fit_mixAR}}, \code{\link{bayes_mixAR}},
\code{\link{fit_mixARreg}},
\code{\link{mixSARfit}};

Predictive distributions and summaries:
\code{\link{mix_pdf}}, \code{\link{mix_cdf}}, \code{\link{mix_qf}},
\code{\link{mix_location}},
\code{\link{mix_variance}},
\code{\link{mix_central_moment}},
\code{\link{mix_moment}},
\code{\link{mix_kurtosis}},
\code{\link{mix_ekurtosis}}

multi-step prediction:
\code{\link{multiStep_dist}}

}
\examples{
## object 'exampleModels' contains a number of models for examples and testing
names(exampleModels)
Expand Down

0 comments on commit dbc4ebd

Please sign in to comment.