#'@title Calculating the variance in size conditioned on intercept
#'
#'@param allo an allometry object
#'
#'@return The variance in size conditioned on intercept
#'
#'@author Kjetil L. Voje
#'
#'@references Voje, K. L., Hansen, T. F., Egset, C. K., Bolstad, G. H., & Pélabon, C. (2014). Allometric constraints and the evolution of allometry. \emph{Evoluton} 68:866–885.
#'
#'@export
#'
var_x.a<-function (allometry.object)
{
out<-var(allometry.object$x_mean)-((cov(allometry.object$intercept,allometry.object$x_mean)^2)/var(allometry.object$intercept))
return(out)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.