Learn R Programming

spsurvey (version 3.1)

dsgnsum: Summarize the Sites Selected for a Survey Design

Description

This function summarizes the sites selected for a survey design by producing contingency tables containing the cross-tabluation of number of sites for survey design variables and, optionally, for auxiliary variables.

Usage

dsgnsum(spsample, auxvar = NULL)

Arguments

spsample
an object of class SpatialDesign produced by either the grts or irs functions that contains survey design information and additional attribute (auxiliary) variables.
auxvar
a vector containing the names of columns in the data slot of the SpatialDesign object that identify auxiliary variables to be used to summarize the survey design.

Value

A list containing the following components:
DesignSum
a list of contingency tables containing the cross-tabulation of number of sites for the following combinations of survey design variables: (1) multidensity category (mdcaty) and stratum (2) stratum and panel (3) mdcaty, panel, and stratum
AuxVarSum
a list of contingency tables containing the cross-tabulation of number of sites for each auxiliary variable and the design variables mdcaty, panel, and stratum
In addition, the output list plus labeling information is printed to the console.

References

Stevens, D.L., Jr., and A.R. Olsen. (2004). Spatially-balanced sampling of natural resources. Journal of the American Statistical Association 99: 262-278.

See Also

grts framesum

Examples

Run this code
## Not run: 
# design <- list(Stratum1=list(panel=c(PanelOne=50), seltype="Equal", over=10),
#    Stratum2=list(panel=c(PanelOne=50, PanelTwo=50), seltype="Unequal",
#    caty.n=c(CatyOne=25, CatyTwo=25, CatyThree=25, CatyFour=25), over=75))
# attframe <- read.dbf("shapefile")
# samp <- grts(design=design, DesignID="Test.Site", type.frame="area",
#    src.frame="shapefile", in.shape="shapefile", att.frame=attframe,
#    stratum="stratum", mdcaty="mdcaty", shapefile=TRUE,
#    shapefilename="sample")
# dsgnsum(samp, auxvar=c("ecoregion", "state"))
# ## End(Not run)

Run the code above in your browser using DataLab