From 6898f9993662e424eda7b9f6c3caaca75f843070 Mon Sep 17 00:00:00 2001 From: Hana Sevcikova Date: Wed, 11 Sep 2024 14:31:52 -0700 Subject: [PATCH] added include_2024 --- ChangeLog | 4 +++- DESCRIPTION | 4 ++-- R/plot_functions.R | 1 - data/include_2024.R | 6 ++++++ 4 files changed, 11 insertions(+), 4 deletions(-) create mode 100644 data/include_2024.R diff --git a/ChangeLog b/ChangeLog index 7ccef41..2e06dfd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,7 @@ -7.4-2.90xx (2024-06-20) +7.4-2.90xx (2024-09-11) ----- +Added dataset include_2024. + Fixed bug related to a combination of ar.phase2 and missing data (thanks to Shunqi Cheng). Added the mean variant into summary outputs. diff --git a/DESCRIPTION b/DESCRIPTION index 4a426e7..d77a211 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,6 +1,6 @@ Package: bayesTFR -Version: 7.4-2.9003 -Date: 2024-06-05 +Version: 7.4-2.9004 +Date: 2024-09-11 Title: Bayesian Fertility Projection Author: Hana Sevcikova (hanas@uw.edu), Leontine Alkema (alkema@nus.edu.sg), Peiran Liu (prliu@uw.edu), Adrian Raftery (raftery@uw.edu), Bailey Fosdick (bfosdick@uw.edu), Patrick Gerland (gerland@un.org) Maintainer: Hana Sevcikova diff --git a/R/plot_functions.R b/R/plot_functions.R index a155f7a..3cc3214 100644 --- a/R/plot_functions.R +++ b/R/plot_functions.R @@ -746,7 +746,6 @@ tfr.trajectories.plot <- function(tfr.pred, country, pi=c(80, 95), lty <- c(max.lty+1, lty) max.lty <- max(lty) } - main.legend <- "" if(main.proj.name != ""){ main.legend <- if(adjusted.only) main.proj.name else paste('adj.', main.proj.name) legend <- c(legend, main.legend) diff --git a/data/include_2024.R b/data/include_2024.R new file mode 100644 index 0000000..a6af5cc --- /dev/null +++ b/data/include_2024.R @@ -0,0 +1,6 @@ +include_2024 <- local({ + e <- new.env() + load("include_2022.rda", envir= e) + e$include_2022 +}) +