compress_outcomes {gmfamm} | R Documentation |
Compress the outcome list of predictions into single vectors
Description
This is an internal function combining all mu and sigma outcomes, respectively, taking into account the outcome information.
Usage
compress_outcomes(pred_list, mus, sigmas, outcome)
Arguments
pred_list |
List of predictions for each outcome. |
mus |
Character vector with names of included mu models. |
sigmas |
Character vector with names of included sigma models. |
outcome |
Factor vector containing the information of which row corresponds to which outcome. |
Value
List with two elements containing predictions for mu and sigma model terms. If a some model parameters are missing (such as sigma for binomial distributional assumption) NA elements are contained.
[Package gmfamm version 0.1.0 Index]