sumCircResids {activityGCMM}R Documentation

Calculate sum of absolute circular residuals

Description

Calculate posterior probability distribution of summed absolute circular residuals for assessing GCMM model fit

Usage

sumCircResids(model)

Arguments

model

Object of class GCMM with output from GCMM function; residuals must be saved when running the GCMM function using saveResids=TRUE

Value

Returns list with output summary with mean and 95% HDI and posterior distribution of summed absolute circular residuals

Examples

 FoxGCMMresids<-GCMM(data=redfoxsample$Radians, RE1=redfoxsample$SamplingPeriod, saveResids=TRUE,
    scale=c("2pi"), family="vonmises", autorun=FALSE, adapt=0, sample=300, burnin=300, thin=1) 
    FoxResids<-sumCircResids(FoxGCMMresids) 

[Package activityGCMM version 1.1.1 Index]