compareGCMMfit {activityGCMM}R Documentation

Compare fit of GCMM models based on circular residuals

Description

Compare fit of GCMM models by comparing posterior distributions of the summed circular residuals

Usage

compareGCMMfit(model1, model2, sample = 10000)

Arguments

model1

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

model2

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

sample

Number of posterior samples; default=10000

Value

Returns object of class GCMMestimate with list of output

Examples

 
FoxVMGCMM<-GCMM(data=redfoxsample$Radians, RE1=redfoxsample$CameraTrapID, family="vonmises", 
    saveResids=TRUE, scale=c("2pi"), autorun=FALSE, adapt=0, sample=1000, burnin=500, thin=1) 
FoxWCGCMM<-GCMM(data=redfoxsample$Radians, RE1=redfoxsample$CameraTrapID, family="wrappedcauchy",
    saveResids=TRUE, scale=c("2pi"), autorun=FALSE, adapt=0, sample=1000, burnin=500, thin=1) 
FoxModelCompare<-compareGCMMfit(FoxVMGCMM, FoxWCGCMM)  


[Package activityGCMM version 1.1.1 Index]