discrep: Function to determine the discrepancy for each level of a...

Description Usage Arguments Value Author(s)

Description

Finds the discrepancy between the proportion of data in each level of a weighted vector and a set of targets for each level of that same vector. Used as part of anesrake.

Usage

1
discrep(datavec, targetvec, weightvec)

Arguments

datavec

Vector of values for a particular variable.

targetvec

Vector of targets with a single item per level of that variable.

weightvec

Weighting vector to be applied to datavec.

Value

Vector of discrepancies at each level.

Author(s)

Josh Pasek, Assistant Professor of Communication Studies at the University of Michigan (www.joshpasek.com).


anesrake documentation built on May 2, 2019, 1:42 p.m.

Related to discrep in anesrake...