errorCalculation: errorCalculation

Description Usage Arguments

Description

This helper function calculates the error, defined as the sum of squared differences between the modelled results and the actual results

Usage

1

Arguments

Old

m by n matrix of values for n choices in m districts

New

m by p matrix of values for n choices in m districts

Transition

n by b matrix of transition values, all should be positive, row sums should be one


chrisschwer/voterTransition-package documentation built on May 13, 2019, 6:56 p.m.