Solapply: Apply a function over each of the stored posterior solutions...

Description Usage Arguments Examples

View source: R/Solapply.R

Description

Apply a function over each of the stored posterior solutions from a MCMCglmm Model

Usage

1
Solapply(model, FUN = posterior_mode, ...)

Arguments

model

model of class MCMCglmm

FUN

function name to apply over object, default is posterior mode, suggested also is coda::HPDinterval

Examples

1
2
3
4
# requires data.table
library(data.table)
model <- MCMCglmm(y ~ x, random = ~ z)
Solapply(model, coda::HPDinterval)

Euphrasiologist/VCVglmm documentation built on June 4, 2020, 7:08 p.m.