Skip to content

Commit

Permalink
bump the Rd files as well
Browse files Browse the repository at this point in the history
  • Loading branch information
weberse2 committed Nov 21, 2024
1 parent 30521b8 commit e64f7cf
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 12 deletions.
Binary file modified R/sysdata.rda
Binary file not shown.
17 changes: 8 additions & 9 deletions inst/examples/ess.R
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,14 @@ round(sum(ab_matched))
ess(bmix, method="morita")

# Predictive consistency of elir
if(interactive()) {
# takes a moment to run
n_forward <- 1E2
bmixPred <- preddist(bmix, n=n_forward)
pred_samp <- rmix(bmixPred, 1E3)
pred_ess <- sapply(pred_samp, function(r) ess(postmix(bmix, r=r, n=n_forward), "elir") )
ess(bmix, "elir")
mean(pred_ess) - n_forward
}
n_forward <- 1E1
bmixPred <- preddist(bmix, n=n_forward)
pred_samp <- rmix(bmixPred, 1E2)
# use more samples here for greater accuracy
# pred_samp <- rmix(bmixPred, 1E3)
pred_ess <- sapply(pred_samp, function(r) ess(postmix(bmix, r=r, n=n_forward), "elir") )
ess(bmix, "elir")
mean(pred_ess) - n_forward

# Normal mixture example
nmix <- mixnorm(rob=c(0.5, 0, 2), inf=c(0.5, 3, 4), sigma=10)
Expand Down
6 changes: 4 additions & 2 deletions man/ess.Rd

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

2 changes: 1 addition & 1 deletion tools/make-ds.R
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ make_internal_ds <- function() {
calibration_meta["MD5"] <- vals["MD5"]

pkg_create_date <- Sys.time()
pkg_sha <- "3377b7c"
pkg_sha <- "91e8f18"

if (gsub("\\$", "", pkg_sha) == "Format:%h") {
pkg_sha <- system("git rev-parse --short HEAD", intern=TRUE)
Expand Down

0 comments on commit e64f7cf

Please sign in to comment.