Learn R Programming

TreeBUGS (version 1.5.0)

transformedParameters: Get Transformed Parameters

Description

Computes transformations of MPT parameters based on the MCMC posterior samples (e.g., differences of parameters).

Usage

transformedParameters(
  fittedModel,
  transformedParameters,
  level = "group",
  nCPU = 4
)

Value

an mcmc.list of posterior samples for the transformed parameters

Arguments

fittedModel

either a fitted latent-trait or beta MPT model (traitMPT, betaMPT) or an mcmc.list.

transformedParameters

list with parameter transformations that should be computed based on the posterior samples (e.g., for testing parameter differences: list("diffD=Do-Dn")).

level

whether to compute transformations of "group" or "individual" estimates

nCPU

number of CPU cores across which the MCMC chains are distributed

Examples

Run this code
if (FALSE) {
tt <- transformedParameters(fittedModel,
  list("diff = a-b", "p = a>b"),
  level = "individual"
)
summary(tt)
}

Run the code above in your browser using DataLab