Skip to content

Commit

Permalink
remove warning message in smoothSurvey if not doing smoothing
Browse files Browse the repository at this point in the history
  • Loading branch information
richardli committed Oct 12, 2023
1 parent 317d41d commit 96dfd5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/fitspace.R
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ smoothSurvey <- function(data, geo = NULL, Amat = NULL, X = NULL, X.unit = NULL,
if(is.null(responseType)){
stop("responseType not specified")
}
if(is.null(Amat)){
if(is.null(Amat) && smooth){
message("No spatial adjacency matrix is specified. IID area random effect is used.")
}
is.iid.space <- FALSE
Expand Down

0 comments on commit 96dfd5b

Please sign in to comment.