Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New libraries #26

Merged
merged 4 commits into from
Feb 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@ export(.p2r_arima)
export(.p2r_context)
export(.p2r_datasupplier)
export(.p2r_datasuppliers)
export(.p2r_date)
export(.p2r_likelihood)
export(.p2r_matrix)
export(.p2r_metadata)
export(.p2r_moniker)
Expand Down Expand Up @@ -133,6 +135,7 @@ export(.r2p_calendar)
export(.r2p_context)
export(.r2p_datasupplier)
export(.r2p_datasuppliers)
export(.r2p_date)
export(.r2p_lparameters)
export(.r2p_metadata)
export(.r2p_moniker)
Expand Down Expand Up @@ -193,6 +196,7 @@ export(intervention_variable)
export(jarquebera)
export(julianeaster_variable)
export(kurtosis)
export(likelihood)
export(ljungbox)
export(long_term_mean)
export(lp_variable)
Expand Down
7 changes: 7 additions & 0 deletions R/protobuf.R
Original file line number Diff line number Diff line change
Expand Up @@ -183,11 +183,16 @@ NULL
}


#' @export
#' @rdname jd3_utilities
.p2r_likelihood<-function(p){
return (likelihood(p$nobs, p$neffectiveobs, p$nparams,
p$log_likelihood, p$adjusted_log_likelihood,
p$aic, p$aicc, p$bic, p$bicc, p$ssq))
}

#' @export
#' @rdname jd3_utilities
.p2r_date<-function(p){
if (p$has('year')){
return (ymd(p$year, p$month, p$day))
Expand All @@ -196,6 +201,8 @@ NULL
}
}

#' @export
#' @rdname jd3_utilities
.r2p_date<-function(s){
if (is.null(s)) return(jd3.Date$new())
else return (parseDate(s))
Expand Down
17 changes: 17 additions & 0 deletions R/utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,23 @@ test_anova<-function(ssm, dfm, ssr, dfr){
return (statisticaltest(val, pval, desc))
}

#' Title
#'
#' @param nobs
#' @param neffectiveobs
#' @param nparams
#' @param ll
#' @param adjustedll
#' @param aic
#' @param aicc
#' @param bic
#' @param bicc
#' @param ssq
#'
#' @return
#' @export
#'
#' @examples
likelihood<-function(nobs, neffectiveobs=NA, nparams=0, ll, adjustedll=NA, aic, aicc, bic, bicc, ssq){

if (is.na(neffectiveobs)) neffectiveobs=nobs
Expand Down
Binary file removed inst/java/jdplus-sa-base-api-3.2.1.jar
Binary file not shown.
Binary file added inst/java/jdplus-sa-base-api-3.2.2-SNAPSHOT.jar
Binary file not shown.
Binary file removed inst/java/jdplus-sa-base-core-3.2.1.jar
Binary file not shown.
Binary file added inst/java/jdplus-sa-base-core-3.2.2-SNAPSHOT.jar
Binary file not shown.
Binary file removed inst/java/jdplus-sa-base-protobuf-3.2.1.jar
Binary file not shown.
Binary file not shown.
Binary file removed inst/java/jdplus-sa-base-r-3.2.1.jar
Binary file not shown.
Binary file added inst/java/jdplus-sa-base-r-3.2.2-SNAPSHOT.jar
Binary file not shown.
Binary file removed inst/java/jdplus-toolkit-base-api-3.2.1.jar
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed inst/java/jdplus-toolkit-base-protobuf-3.2.1.jar
Binary file not shown.
Binary file not shown.
Binary file removed inst/java/jdplus-toolkit-base-r-3.2.1.jar
Binary file not shown.
Binary file not shown.
4 changes: 2 additions & 2 deletions man/autocorrelations.Rd

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

13 changes: 11 additions & 2 deletions man/jd3_utilities.Rd

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

25 changes: 25 additions & 0 deletions man/likelihood.Rd

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

2 changes: 1 addition & 1 deletion man/ljungbox.Rd

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

2 changes: 1 addition & 1 deletion man/national_calendar.Rd

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

2 changes: 1 addition & 1 deletion man/normality_tests.Rd

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

4 changes: 2 additions & 2 deletions man/runstests.Rd

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

2 changes: 1 addition & 1 deletion man/ucarima_model.Rd

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

Loading