Description Usage Arguments Value Author(s)
This function calculates an estimate of the cumulative distribution function (CDF) for the proportion of a finite or an extensive resource. The set of values at which the CDF is estimated is supplied to the function. The Horvitz-Thompson ratio estimator, i.e., the ratio of two Horvitz-Thompson estimators, is used to calculate the estimate. The numerator of the ratio estimates the total of the resource equal to or less than a specified value. The denominator of the ratio estimates the size of the resource. For a finite resource size is the number of units in the resource. For an extensive resource size is the extent (measure) of the resource, i.e., length, area, or volume. The function can accomodate single-stage and two-stage samples.
1 | cdf.prop(z, wgt, val, cluster.ind, cluster, wgt1)
|
z |
Vector of the response value for each site. |
wgt |
Vector of the final adjusted weight (inverse of the sample inclusion probability) for each site, which is either the weight for a single- stage sample or the stage two weight for a two-stage sample. |
val |
Vector of the set of values at which the CDF is estimated. |
cluster.ind |
Logical value that indicates whether the sample is a two- stage sample, where TRUE = a two-stage sample and FALSE = not a two-stage sample. |
cluster |
Vector of the stage one sampling unit (primary sampling unit or cluster) code for each site. |
wgt1 |
Vector of the final adjusted stage one weight for each site. |
The CDF estimate.
Tom Kincaid Kincaid.Tom@epa.gov
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.