reorder_theta: reorder_theta

View source: R/reorder_theta.R

reorder_thetaR Documentation

reorder_theta

Description

Internal helper function to reorder the theta parameters list

Usage

reorder_theta(theta, marginal_description, ord)

Arguments

theta

List of estimated parameters.

marginal_description

Character string which determines the marginal distribution of the data. single marginal description applies to all variables in biocorex

ord

Vector of integers that give desired reorder sequence

Details

This function is necessary as the structure of theta varies for each parameter type. THis function is used after convergence to help package results for return to user. Is it called by sort_results which passes the desired order via the ord parameter.

Value

Returns a new version of theta reordered according to the pattern supplied to ord


jpkrooney/rcorex documentation built on July 25, 2022, 1:37 a.m.