This function checks input values for errors, consistency, and compatibility with analytical functions.
input.check(nresp, wgt, sigma, var.sigma, xcoord, ycoord, stratum.ind,
stratum, stratum.levels, nstrata, cluster.ind, cluster, cluster.levels,
ncluster, wgt1, xcoord1, ycoord1, popsize, pcfactor.ind, pcfsize,
N.cluster, stage1size, support, swgt.ind, swgt, swgt1, vartype, conf,
cdfval = NULL, pctval = NULL, subpop = NULL)
The number of response values.
Vector of the final adjusted weights.
Measurement error variance.
Variance of the measurement error variance.
Vector of the x-coordinates for location.
Vector of the y-coordinates for location.
Logical value that indicates whether the sample is stratified, where TRUE = a stratified sample and FALSE = not a stratified sample.
Vector of the stratum codes.
Levels of the stratum variable.
Number of strata.
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.
Vector of the stage one sampling unit codes.
Factor levels of the stage one sampling unit codes.
The number of stage one sampling units in the sample.
Vector of the final adjusted stage one weights.
Vector of the stage one x-coordinates for location.
Vector of the stage one y-coordinates for location.
Known size of the resource.
Logical value that indicates whether the population correction factor is used during variance estimation, where TRUE = use the population correction factor and FALSE = do not use the factor. To employ the correction factor for a single-stage sample, values must be supplied for arguments pcfsize and support. To employ the correction factor for a two-stage sample, values must be supplied for arguments N.cluster, stage1size, and support.
Size of the resource, which is required for calculation of finite and continuous population correction factors for a single-stage sample. For a stratified sample this argument must be a vector containing a value for each stratum and must have the names attribute set to identify the stratum codes.
Number of stage one sampling units in the resource.
Known size of the stage one sampling units.
Vector of the support for each sampling unit.
Logical value that indicates whether the sample is a size- weighted sample, where TRUE = a size-weighted sample and FALSE = not a size-weighted sample.
Vector of the size-weight for each site.
Vector of the stage one size-weight for each site.
The choice of variance estimator, where "Local" = local mean estimator and "SRS" = SRS estimator.
The confidence level.
Vector of the set of values at which the CDF is estimated.
Vector of the set of values at which percentiles are estimated.
Data frame describing sets of populations and subpopulations for which estimates will be calculated.
A list consisting of popsize, pcfsize, N.cluster, and stage1size.
vecprint
takes an input vector and outputs a character string with line breaks inserted