sumZR: Calculates sum of absolute differences

View source: R/sumZR.R

sumZRR Documentation

Calculates sum of absolute differences

Description

This is a helper function to calculate the sum of the absolute differences |Z-R|

Usage

sumZR(Z,R)

Arguments

Z

Population vector

R

Vector for the representatives

Details

This is a helper function.

Value

Sum of absolute differences

Author(s)

Didier Ruedin


polrep documentation built on Jan. 5, 2024, 3:01 a.m.