Skip to content

Commit b87c8dd

Browse files
committed
Day 4 added
1 parent 1dc68de commit b87c8dd

6 files changed

+1629
-55
lines changed

day3-2-detection.Rmd

+2-1
Original file line numberDiff line numberDiff line change
@@ -714,7 +714,6 @@ AIC(Mmulti1, Mmulti2)
714714
715715
tau1 <- exp(coef(Mmulti1))
716716
names(tau1) <- gsub("log.tau_spp", "", names(tau1))
717-
tau1
718717
719718
X <- model.matrix(~ logmass + MaxFreqkHz + Mig2 + Hab2,
720719
lhreg_data[match(names(tau1), lhreg_data$spp),])
@@ -723,6 +722,8 @@ tau2 <- exp(X %*% coef(Mmulti2))
723722
res <- data.frame(count=sapply(yall_dis[names(tau1)], sum), tau1=tau1, tau2=tau2)
724723
res$diff <- res$tau1 - res$tau2
725724
725+
res
726+
726727
plot(diff ~ count, res)
727728
abline(h=0, lty=2)
728729
```

day4-1-intro.Rmd

+1
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,7 @@ include_graphics("images/variable-selection-2.png")
162162
# Disadvantages
163163

164164
- Taking care of uncertainty needs more work
165+
- Model validation gets a bit tricky
165166

166167
***
167168

0 commit comments

Comments
 (0)