Description Usage Arguments Value Author(s)
rakelist
takes a list of variables and target values weights a dataset with those variables to match the targets via raking. It is the primary workhorse command of anesrake
.
1 2 |
inputter |
The
|
dataframe |
The |
caseid |
The |
weightvec |
|
cap |
|
verbose |
Users interested in seeing the progress of the algorithm can set |
maxit |
Users can set a maximum number of iterations for the function should it fail to converge using |
convcrit |
|
A list object of rakelist
has the following elements:
weightvec |
Vector of weights From raking algorithm |
caseid |
Case IDs for final weights – helpful for matching |
iterations |
Number of iterations required for convergence (or non-convergence) of final model |
nonconvergence |
Measure of remaining discrepancy from benchmarks if convergence was not achieved |
converge |
Notes whether full convergence was achieved, algorithm failed to converge because convergence was not possible, or maximum iterations were reached |
varsused |
List of variables selected for weighting |
targets |
|
dataframe |
Copy of the original |
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.