Description Usage Arguments Value Author(s) Examples
Purpose of this function is to adjust initial survey design weights when implementation results in use of oversample sites or when it is desired to have final weights sum to known frame size. Adjusted weights are equal to initial weight * framesize/sum(initial weights). The adjustment is done separately for each category specified in wtcat.
1 | adjwgt(sites, wgt, wtcat, framesize)
|
sites |
Vector of the logical value for each site, where TRUE = include the site and FALSE = do not include the site. |
wgt |
Vector of the initial weight (inverse of the sample inclusion probability) for each site. |
wtcat |
Vector of the weight adjustment category name for each site. |
framesize |
Vector of the known size of the frame for each category name in wtcat, which must have the names attribute set to match the category names used in wtcat. |
Vector of adjusted weights, where the adjusted weight is set to zero for sites that have the logical value in the sites argument set to FALSE.
Tony Olsen olsen.tony@epa.gov
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.