Learn R Programming

activityGCMM (version 1.1.1)

compareGCMM: Compare GCMM parameters or estimates

Description

Compare two posterior distributions of GCMM parameters or estimates

Usage

compareGCMM(model1, p1, model2 = "NULL", p2, sample = 1000, plot = TRUE)

Arguments

model1

Object either of class GCMM with output from GCMM function or of class GCMMestimate with output from other activityGCMM functions

p1

Name of first parameter to compare, from model1

model2

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

p2

Second parameter to compare, either name of a parameter, estimate, or a vector of values

sample

Number of posterior samples from which to build HDI; default=1000

plot

Logical argument for whether to plot histograms of p1, p2, and the difference between them; default=TRUE

Value

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)