groupvar_to_model: Mapping of groupvars to model

Description Usage Arguments Details Value Author(s)

View source: R/utils.R

Description

Mapping of groupvar to models run

Usage

1
groupvar_to_model(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 m1, m2 and m3 run for country c1, and models m1, m2, m3, m4 run for country c2. For this example, groupvar_to_model returns a named list where names are formed by concatenating models and elements are countries for which a particular set of models has been run. (m1_m2_m3 = c1, m1_m2_m3_m4 = c2)

Value

list

Author(s)

Sangeeta Bhatia


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