You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The current syntax for dsm.fit is based on pretty old code, I think that it makes sense (especially as we add more functionality) to make a change to the way models are specified. The basic idea is to make things look more like mgcv::gam().
Currently things like the family and knots are specified using lists of lists, this involves lots of typing and doesn't make much sense if you're used to fitting GAMs using mgcv. This becomes even more of a pain if we want to start using gamm() for mixed models (I do anyway...)
watch a directory for changes to .Rmd (knitr+markdown files) and if any change, knit them. Best used with Marked by Brett Terpstra (set it to watch the .md files that knitr will generate).
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
** THIS DOESN'T WORK ANY MORE ** Recent updates to XCode seem to have stopped this from working. I am attempting to get this working again. Updates will be posted here.
Use the right version of gcc
The version of gcc that ships with Mac OS X doesn't have openMP enabled, which means you can't use "helper threads", which make pqR super-fast. So, we first need to install that and get OS X to use it...
Get homebrew so you can install a newer version of gcc, then:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Build a GraphViz compatible file showing which functions call each other in an R package.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Our understanding of a biological population can be greatly enhanced by modelling their distribution in space and as a function of environmental covariates. Such models can be used to investigate the relationships between distribution and environmental covariates as well as reliably estimate abundances and create maps of animal and plant distributions.
Here I'll give an overview of "density surface models", which consist of a spatial model of the abundance which has been corrected for uncertain detection via distance sampling methods. The spatial model consists of a generalised additive (mixed) model, which can include various components, such as smooth terms and random effects.
Results/Conclusions
In particular, I'll highlight modelling techniques that may be advantageous to applied ecologists: quantification of uncertainty in a two-stage model, correction for availability bias, alternative response distributions, autocorrelation and smoothing in areas with complex bound
Many models that we build rely on combining several components, often representing different processes at work in the system. For example in ecology we may have a component for detectability of the species by observers, one for whether the animals are available, one describing their spatial distribution.
Defining such a complex model in R can result in writing a very long call to a particular function, which may or may not work at any point. Since these processes are often (conditionally) independent, we can separate these components in the likelihood and code. Using the + operator we can then combine them in a simple way that's easy for those doing the modelling to understand. Since each step produces an object, we can perform model validation, diagnostics and checking during construction.
Through an example applied to distance sampling, I'll show an example of this kind of approach to model building and propose some other situations where this kind of strategy may