Learn R Programming

activityGCMM (version 1.1.1)

HPDoverlap: Activity HPD Overlap

Description

Calculate whether there is overlap between two HPDs, the amount of overlap, and the probability of activity during the HPD of the other

Usage

HPDoverlap(model1, model2, prob = 0.5, sample = 1000, scale = "2pi")

Arguments

model1

Object of class GCMM with output from GCMM function

model2

Object of class GCMM with output from GCMM function

prob

Value of probability density mass for activityHPD; default=0.50

sample

Number of posterior samples for calculating 95% HDI; default=1000

scale

Scale for plotting the activity curve, either "2pi" for 0,2pi or "pi" for -pi,pi; default="2pi"

Value

Returns object of class GCMMestimate containing list of posterior distributions and summary information of mean and 95% HDI