normalize_probability: Normalize posterior

Description Usage Arguments Value Functions

Description

Normalize posterior

Usage

1
2
3

Arguments

d

data frame, grouping will be preserved

prob_var

quoted name of column with probability to normalize

Value

A data frame with a column posterior that sums to 1 within each group in d. Additionally, log_posterior and posterior_choice columns are created that have the log-posterior and TRUE for the maximum within each group/FALSE elsewhere, respectively.

Functions


kleinschmidt/daver documentation built on May 20, 2019, 12:33 p.m.