Description Usage Arguments Value Author(s) See Also
The zeligBuildWeights
utility allows developers
building models or modules for Zelig, to easily define
what types of weights can be set by the user and passed
to estimation function. In some cases it can reconfigure
the dataset by duplication to functionally invoke discrete
weighting by replication of observations, when the estimator
itself can not utilize weights.
1 2 |
weights |
A set of non-negative value weights. Overrides repweights if defined. |
repweights |
A set of whole number (non-negative integer) weights. Useful if weights are just for making copies of or deleting certain observations or for frequency weights. |
zeros |
An option on how to deal with zero valued user supplied weights. Default of "zero" allows zero weights, "epsilon" changes zeroes to 1e-08, "remove" removes those observations from the dataset. |
rebuild |
An option to allow specified repweights to reconfigure the rows of the dataset to rebuild a corresponding dataset where every row is of weight 1. Useful if analysis model does not accept weights. |
allowweights |
Defines if weights are allowed in model. |
allowrepweights |
Defines if repweights are allowed in model. Overridden if
|
data |
Dataset, required if weights are defined by variable name, or if
dataset is to be reconfigured (by |
weights |
A vector of weights of the structure defined by the developer and required by the analysis model. Or NULL if certain checks are failed. |
data |
A reconfigured dataset, if modified. |
James Honaker jhonaker@iq.harvard.edu
The full Zelig developer manual may be accessed online at http://gking.harvard.edu/zelig
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.