Learn R Programming

spsurvey (version 4.1.4)

sbcsamp: Calculate Spatial Balance Grid Cell Extent and Proportions for a Survey Design

Description

This function calculates spatial balance grid cell extent and proportions for a survey design. The user must provide either sbc.frame or values for dx, dy, xc, and yc.

Usage

sbcsamp(spsample, sbc.frame = NULL, dx = NULL, dy = NULL,
  xc = NULL, yc = NULL)

Arguments

spsample

Object of class SpatialDesign produced by either the grts or irs functions that contains survey design information and additional attribute (auxiliary) variables.

sbc.frame

The object created by the sbcframe function. The default is NULL.

dx

Grid cell x-coordinate increment value. The default is NULL.

dy

Grid cell y-coordinate increment value. The default is NULL.

xc

Vector of grid cell x-coordinates. The default is NULL.

yc

Vector of grid cell y-coordinates. The default is NULL.

Value

List containing the following components:

extent

the sample extent for each grid cell

prop

the sample proportion for each grid cell