lorad_transform {lorad} | R Documentation |
Log (or log-ratio) transform parameters having constrained support
Description
Log-transforms parameters with support (0,infinity), log-ratio transforms K-dimensional parameters with support a (K-1)-simplex, logit transforms parameters with support [0,1], and leaves unchanged parameters with unconstrained support (-infinity, infinity).
Usage
lorad_transform(params, colspec)
Arguments
params |
Data frame containing a column for each model parameter sampled as well as one or more columns that, when summed, constitute the log joint posterior kernel |
colspec |
Named character vector matching each column name in params with a column specification |
Value
A new data frame comprising transformed parameter values with a final column holding the log joint posterior kernel
[Package lorad version 0.0.1.0 Index]