Skip to content

Commit

Permalink
#16, #10 fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
mgross committed Mar 26, 2022
1 parent 749d12f commit 514fa5c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>
Description: Shiny App contains: a data explorer tab, an interactive map and a static map, which should present model results.
Expand Down
5 changes: 2 additions & 3 deletions R/01-estimateMap.R
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 514fa5c

Please sign in to comment.