incorporate_outcome {gmfamm}R Documentation

Incorporate outcome information into

Description

This is an internal function multiplying all outcome predictions with 0 if the respective row is not part of the outcome.

Usage

incorporate_outcome(pred_list, mus, sigmas, outcome_ids, outcome_levels)

Arguments

pred_list

List of predictions for each outcome.

mus

Integer vector for numbering available mus. Can be NULL but shouldn't.

sigmas

Integer vector for numbering available sigmas. Can be NULL.

outcome_ids

Numeric matrix resulting from model.matrix call containing the info about the outcomes. Column names are hard coded.

outcome_levels

Character string containing the outcome names.

Value

List but now with 0 elements where the rows are not corresponding to outcomes.


[Package gmfamm version 0.1.0 Index]