estimation

Calculate the standard error of any function using the delta method

In statistical ecology, we often need to calculate the sampling variance of a function of an estimate of which we do know the sampling variance. I keep forgetting how to implement the so-called delta method in R that allows to get an approximation of this quantity. So in this post I go through two examples in population ecology that should help me remembering. I use the deltamethod function from the msm package.