Skip to content

Commit

Permalink
Minor bug fix for the case fs_by_spatial_BAU = TRUE
Browse files Browse the repository at this point in the history
  • Loading branch information
msainsburydale committed Dec 7, 2023
1 parent 66546ff commit 4a4e75a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/SREfit.R
Original file line number Diff line number Diff line change
Expand Up @@ -874,7 +874,7 @@ SRE.fit <- function(object, n_EM = 100L, tol = 0.01, method = c("EM", "TMB"),

## If zero fine-scale variation detected just make sure user knows.
## This can be symptomatic of poor fitting
if(object@sigma2fshat == 0) {
if(any(object@sigma2fshat == 0)) {
info_fit$sigma2fshat_equal_0 <- 1
if(opts_FRK$get("verbose") > 0)
message("sigma2fs is being estimated to zero.
Expand Down

0 comments on commit 4a4e75a

Please sign in to comment.