Learn R Programming

poolABC (version 1.0.0)

Tmatrix: Transform matrix of parameter values

Description

This function applies a transformation to the parameter values.

Usage

Tmatrix(original, limits)

Value

a matrix with the same dimensions as the original matrix but with the parameter values transformed.

Arguments

original

a matrix of parameter values i.e. numbers obtained from the simulations. Each column should be a different parameter and each row a different simulation. This is the matrix that you wish to transform so that the parameter values are all in the same scale.

limits

is a matrix with two columns and as many rows as there are parameters. Each row should contain the minimum value of the prior for a given parameter in the first column and the maximum value in the second column.

Details

The transformation should be applied before parameter estimation using an Approximate Bayesian Computation framework to ensure that the estimates do not fall outside the boundaries set by the prior distribution.