model_to_groupvar: Mapping of models to groups for which they have been run

Description Usage Arguments Details Value Author(s)

View source: R/utils.R

Description

Mapping of models to groups for which they have been run

Usage

1
model_to_groupvar(pred, groupvars)

Arguments

pred

data.frame with at least one column called model

groupvars

quoted variable names used to define groups within which models should be ranked.

Details

In some cases, we might not have the same set of models run for a grouping variable. For example, say the grouping variable is country, and we have Models M_1, M_2 and M_3 run for country C_1, and models M_1, M_2, M_3, M_4 run country C_2. For this example, this function will return the list m_1 = c_1, c_2, m_2 = c_1, c_1, m_3 = c_1, c_2, m_4 = c_2 This can be used to identify for which countries a give model has been run.

Value

list

Author(s)

Sangeeta Bhatia


mrc-ide/weighter documentation built on May 16, 2020, 2:34 a.m.