alignment: Alignment

Description Usage Arguments Value

View source: R/alignment.R

Description

Microsimulation alignment ensures that the simulation outcome matches its given alignment target while the selection probabilities are based on each individual's likelihood.

Usage

1
alignment(prediction, target)

Arguments

prediction

a data.table with columns that contain predicted probabilities

target

a named list that contains name-number value pairs that represent the number of agents to be aligned to each choice.

Value

a character vector with the same length as the nubmer of rows of prediction. Where the index of the vector correspond to the index of the rows of prediction,


dymium-org/dymiumCore documentation built on July 18, 2021, 5:10 p.m.