calcdicExtern: Calculates DIC

Description Usage Arguments Author(s) Examples

View source: R/calcdicExtern.R

Description

This function calculates the DIC score for an object return by bayesPref.

Usage

1
2
calcdicExtern(pData = NULL, prefres = NULL, pops = TRUE, 
dicburn = 0, estip = TRUE, measure = "median", constrainP = NULL)

Arguments

pData

A matrix of count data, rows are replicates or individuals and columns are categories.

prefres

An object returned by bayesPref.

pops

A Boolean indicating whether the first column of the matrix are values indicating populations.

dicburn

A value indicating the number of burnin samples discarded for DIC calculation.

estip

A boolean indicating whether to attempt to estimate individual preferences or only estimate population preference (the latter used a multivariate Polya).

measure

Indicates whether the "mean" or "median" is used for calculating DIC.

constrainP

A vector with one entry per population giving the group each population belongs to.

Author(s)

Zachariah Gompert [email protected], James A. Fordyce [email protected]

Examples

1
2
3
4
5
6
## Not run: 
data(YGGV)
res <- bayesPref(pData=YGGV,mcmcL=1000)
calcdicExtern(pData=YGGV,prefres=res,pops=TRUE,dicburn=100) 

## End(Not run)

bayespref documentation built on May 30, 2017, 3 a.m.