Description Usage Arguments Value Author(s)
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
.
1 | discrep(datavec, targetvec, weightvec)
|
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 |
Vector of discrepancies at each level.
Josh Pasek, Assistant Professor of Communication Studies at the University of Michigan (www.joshpasek.com).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.