risk_group_mapping | R Documentation |
Sometimes data/results are stratified in different ways. For example in the UK data set vaccination is divided into risk groups: low risk and high risk, while for the virological data is not stratified by risk. This function provides a standardised way of mapping one to another.
risk_group_mapping(from, to, weights)
from |
The risk groups you want to map from |
to |
The risk groups you want to map to |
weights |
Optional vector with the weight/fraction of how each from group should be grouped into a to group. For example if your epidemiological model
groups everything together, but the data is divided into two equal risk groups you would use:
|
A data frame containing which risk groups map to which other risk group. And what proportion (weight) of the risk groups maps to the other risk grouping.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.