diff --git a/DESCRIPTION b/DESCRIPTION index c1681988..18560366 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,6 +1,6 @@ Package: MpiIsoApp Title: Shiny App for Isotopes data base -Version: 22.02.2 +Version: 22.02.3 Author: INWT Statistics GmbH Maintainer: INWT Description: Shiny App contains: a data explorer tab, an interactive map and a static map, which should present model results. diff --git a/R/01-estimateMap.R b/R/01-estimateMap.R index 894f9108..d4914c51 100644 --- a/R/01-estimateMap.R +++ b/R/01-estimateMap.R @@ -1788,13 +1788,12 @@ modelSpread <- function(data, K, iter, burnin, MinMax, smoothConst, penalty, else{q = spreadQ} eta <- (1 - 2 * q) / (q * (1-q)) sigma <- (2) / (q * (1 - q)) - XBeta <- XX %*% beta print(nrow(data)) - if (MinMax == "Max" && minValue == -Inf){ + if (MinMax == "Max" && (minValue == -Inf | is.na(minValue))){ minValue <- Inf } - if ((MinMax == "Min" && minValue == Inf)){ + if ((MinMax == "Min" && (minValue == Inf | is.na(minValue)))){ minValue <- -Inf }