Skip to content

Commit

Permalink
Fix typo in fit-glm
Browse files Browse the repository at this point in the history
  • Loading branch information
katieb1 committed Oct 15, 2024
1 parent 3e67aa1 commit e3e7e83
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/07-fit-model-functions.R
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ fitModel <- function(dat, # df of training data
if(out$modOptions$ConsiderSquaredTerms & out$modOptions$ConsiderInteractions){ # creates full scope with interactions and squared terms
scopeGLM <- list(lower = as.formula(paste("Response","~1")),
upper = as.formula(paste("Response","~",paste(c(if(length(factor.mask)>0) paste(sanitizedVarNames[factor.mask],collapse=" + "),
paste("(",paste(sanitizedVarNamess[cont.mask],collapse=" + "),")^2",sep=""),
paste("(",paste(sanitizedVarNames[cont.mask],collapse=" + "),")^2",sep=""),
paste("I(",sanitizedVarNames[cont.mask],"^2)",sep="")),collapse=" + "),sep="")))
}
if(!out$modOptions$ConsiderSquaredTerms & out$modOptions$ConsiderInteractions){ # creates full scope with interactions
Expand Down
2 changes: 1 addition & 1 deletion src/package.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<package name="wisdm" displayName="WISDM" description="Workbench for Integrated Species Distribution Modeling" version="2.0.5" url="https://apexrms.github.io/wisdm/">
<package name="wisdm" displayName="WISDM" description="Workbench for Integrated Species Distribution Modeling" version="2.0.6" url="https://apexrms.github.io/wisdm/">

<!--Library Datasheets-->

Expand Down

0 comments on commit e3e7e83

Please sign in to comment.