Bayesian Models with R-INLA

Fitting Bayesian models has gotten even better with the R package INLA. The fact that it’s integrated into R has led to more simplistic scripting, and the approach means much reduced computational time. There is a lot of literature out there about “why and how” the integrated nested Laplace approximation, which is why my treatment of it in this blog […]

Continue reading..Bayesian Models with R-INLA

Getting BBS Data into R

I like to start with a clean slate. Set your working directory to wherever you store your BBS, etc. files that will go into the script. rm(list = ls()) setwd(“”) Here, you need to put the full path to the BBS files. library(data.table) BBS <- rbindlist(lapply(list.files(“”,full.names=TRUE),read.csv)) This following line creates a unique identifier for each […]

Continue reading..Getting BBS Data into R

BBS Data Summarized for 10 Stops

If you want to use the finer-scale BBS data, here’s a tweak to the R code I presented. In this case, you won’t want the SpeciesTotal, country number (perhaps, otherwise add it it to the ID variables) or StopTotal (again, I assume). BBS$countrynum <- NULL BBS$SpeciesTotal <- NULL BBS$StopTotal <- NULL Then, you’re going to […]

Continue reading..BBS Data Summarized for 10 Stops

WI Rare Birds: Last Week April

Happy Earth Day! Go birding 🙂 gray partridge yellow rail black-legged kittiwake I’m moving my feeder cam to the ground, in part because of logistics but in part inspired by the prevalence of possible feeder bird rarity records this time of year that forage on the ground. For example… hermit warbler black-throated sparrow Baird’s sparrow […]

Continue reading..WI Rare Birds: Last Week April