Compare two posterior distributions of GCMM parameters or estimates
compareGCMM(model1, p1, model2 = "NULL", p2, sample = 1000, plot = TRUE)Object either of class GCMM with output from GCMM function or of class GCMMestimate with output from other activityGCMM functions
Name of first parameter to compare, from model1
Object of either class GCMM, GCMMestimate, or a vector or single value for which to compare with model 1; if left blank, it is assumed
that both parameters from arguments p1 and p2 are from model1
Second parameter to compare, either name of a parameter, estimate, or a vector of values
Number of posterior samples from which to build HDI; default=1000
Logical argument for whether to plot histograms of p1, p2, and the difference between them; default=TRUE
Returns object of class GCMMestimate containing a list, including PD containing the posterior distributions of p1, p2 and the difference between them,
and summary information (HDIs and PDS)