Learn R Programming

panelaggregation (version 0.1.1)

computeBalance: Compute Balances from a Item Shares

Description

This function computes balances (i.e. positive - negative items), from item shares stored in a wide format data.table.

Usage

computeBalance(data_table, multipliers = list(item_pos = 1, item_eq = 0, item_neg = -1))

Arguments

data_table
a data.table in wide format containing item
multipliers
list containing multipliers of items, assigned by item and column names