Skip to content

Commit 35cf938

Browse files
Add files via upload
1 parent a4b1170 commit 35cf938

File tree

5 files changed

+2
-3
lines changed

5 files changed

+2
-3
lines changed

inst/extdata/status_update.Rmd

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,8 @@ library(mgcv)
2323
library(rstanarm)
2424
library(viridis)
2525
library(ggridges)
26-
library(mixedup)
2726
data(orca)
28-
year.end = 2021
27+
year.end = 2024
2928
refit_models = FALSE
3029
report_start = year.end-5
3130
# format whale names just for consistency
@@ -280,7 +279,7 @@ whaleData$sexF1M2[which(whaleData$sexF1M2==0)] = sample(c(1,2), size=length(whic
280279
whaleData$region = ifelse(whaleData$pod %in% c("J1","K1","L1"), "SRKW", "NRKW")
281280
282281
whaleData$alive[which(whaleData$region=="NRKW" & whaleData$time > 2010)] = NA
283-
survival_01 = gam(alive ~ s(age,by=as.factor(sexF1M2)) + s(year) + region, family = "binomial", data = whaleData[which(whaleData$includeSurv == 1 & whaleData$year <= 2010), ])
282+
survival_01 = gam(alive ~ s(age,by=as.factor(sexF1M2)) + s(year), family = "binomial", data = whaleData[which(whaleData$includeSurv == 1 & whaleData$year <= 2010), ])
284283
285284
survival_02 = gam(alive ~ s(age,by=as.factor(sexF1M2)) + s(year) + region, family = "binomial", data = whaleData[which(whaleData$includeSurv == 1), ])
286285
Binary file not shown.
656 Bytes
Binary file not shown.
-3.17 KB
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)