marginise: Convert tally weights into margin weights

View source: R/tally.R

marginiseR Documentation

Convert tally weights into margin weights

Description

When we have w(A\rightarrow B)=a and w(B\rightarrow A)=b<a, this function will change w(A\rightarrow B) to a-b and w(B\rightarrow A) to 0.

Usage

marginise(tally)

Arguments

tally

a toporanga_tally object in which weights are going to be converted to margins.

Value

A modified toporanga_tally object.


toporanga documentation built on Aug. 8, 2025, 6:15 p.m.