dsgnsum {spsurvey} | R Documentation |
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.
dsgnsum(sp.obj, auxvar=NULL)
sp.obj |
the sp package object of class "SpatialPointsDataFrame" produced by the grts function that contains survey design information and additional attribute (auxiliary) variables. |
auxvar |
a vector containing the names of columns from sites that identify auxiliary variables to be used to summarize the survey design. |
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.
Tony Olsen Olsen.Tony@epa.gov
Tom Kincaid Kincaid.Tom@epa.gov
Stevens, D.L., Jr., and A.R. Olsen. (2004). Spatially-balanced sampling of natural resources. Journal of the American Statistical Association 99: 262-278.
## Not run: test.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) test.attframe <- read.dbf("test.shapefile") test.sample <- grts(design=test.design, DesignID="Test.Site", type.frame="area", src.frame="shapefile", in.shape="test.shapefile", att.frame=test.attframe, stratum="test.stratum", mdcaty="test.mdcaty", shapefile=TRUE, shapefilename="test.sample") dsgnsum(test.sample, auxvar=c("test.ecoregion", "test.state")) ## End(Not run)