This function adjusts initial survey design weights when implementation results
in use of oversample sites or when it is desired to have final weights sum to a
known frame size. Adjusted weights are equal to initial weight times the frame
size divided by the sum of the initial weights. The adjustment is done
separately for each category specified in argument wtcat.
USAGE:
adjwgt.fcn(sites, wgt, wtcat, framesize)
REQUIRED ARGUMENTS:
sites
the logical value for each site, where TRUE = include the site
and FALSE = do not include the site.
wgt
the initial weight (inverse of the sample inclusion probability) for each
site.
wtcat
the weight adjustment category name for each site.
framesize
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.
VALUE:
A 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.