Skip to content

Commit

Permalink
not load supplemental data if use.wpp.data is FALSE
Browse files Browse the repository at this point in the history
  • Loading branch information
hanase committed Apr 7, 2024
1 parent 2c627c5 commit a5c31e6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
Package: bayesLife
Type: Package
Title: Bayesian Projection of Life Expectancy
Version: 5.2-0.9005
Date: 2024-03-24
Version: 5.2-0.9006
Date: 2024-04-06
Author: Hana Sevcikova, Adrian Raftery, Jennifer Chunn
Maintainer: Hana Sevcikova <[email protected]>
Description: Making probabilistic projections of life expectancy for all countries of the world, using a Bayesian hierarchical model <doi:10.1007/s13524-012-0193-x>. Subnational projections are also supported.
Expand Down
2 changes: 1 addition & 1 deletion R/wpp_data.R
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ get.wpp.e0.data <- function(sex = 'M', start.year = 1950, present.year = 2015,
if (verbose)
cat('Dimension of the e0 matrix:', dim(LEXmatrix.regions$obs_matrix), '\n')

if(!annual || wpp.year >= 2022) {
if((!annual || wpp.year >= 2022) && use.wpp.data) {
LEXmatrixsuppl.regions <- bayesTFR:::.get.suppl.matrix.and.regions(un.object, LEXmatrix.regions, loc_data,
start.year, present.year, annual = annual)
if(!is.null(un.object$suppl.data.object) && verbose)
Expand Down

0 comments on commit a5c31e6

Please sign in to comment.