reorder_theta_epi: reorder_theta_epi

View source: R/reorder_theta_epi.R

reorder_theta_epiR Documentation

reorder_theta_epi

Description

Internal helper function to reorder the theta parameters list for the epicorex function.

Usage

reorder_theta_epi(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.