Topic: Growth

Topic Description:

Functions for analyzing tree growth, designed for the standard CTFS R Analytical Tables.



File: growth/growthfit.bin.r

View File Source Download File No help file available

Function: calculateBinModel.BIC

Function Description: calculateBinModel.BIC

Calculate Bayes Information Criteria using Wikipedia formula

Function Arguments:

ArgumentDefault Value
fit

Function Source:

calculateBinModel.BIC=function(fit)
{
N=dim(fit$model)[1]
noparam=length(fit$best)+length(fit$bestSD)
error.var=(1/N)*sum((fit$model$pred-fit$model$y)^2)

return(N*log(error.var)+noparam*log(N))
}