Learn R Programming

⚠️There's a newer version (5.5.1) of this package.Take me there.

spsurvey (version 4.0.0)

Spatial Survey Design and Analysis

Description

These functions provide procedures for selecting sites for spatial surveys using spatially balanced algorithms applied to discrete points, linear networks, or polygons. The probability survey designs available include independent random samples, stratified random samples, and unequal probability random samples (categorical or probability proportional to size). Design-based estimation based on the results from surveys is available for estimating totals, means, quantiles, CDFs, and linear models. The analyses rely on package survey for most results. Variance estimation options include a local neighborhood variance estimator that is appropriate for spatially-balanced survey designs. A reference for the survey design portion of the package is: D. L. Stevens, Jr. and A. R. Olsen (2004), "Spatially-balanced sampling of natural resources.", Journal of the American Statistical Association 99(465): 262-278, . Additional helpful references for this package are A. R. Olsen, T. M. Kincaid, and Q. Payton (2012) and T. M. Kincaid and A. R. Olsen (2012), both of which are chapters in the book "Design and Analysis of Long-Term Ecological Monitoring Studies" (R. A. Gitzen, J. J. Millspaugh, A. B. Cooper, and D. S. Licht (eds.), Cambridge University Press, New York, ).

Copy Link

Version

Install

install.packages('spsurvey')

Monthly Downloads

1,117

Version

4.0.0

License

GPL (>= 3)

Maintainer

Last Published

April 5th, 2019

Functions in spsurvey (4.0.0)

SC_estuaries

Estuaries in South Carolina
attrisk.var

Compute the Variance Estimate for Attributable Risk
cat.analysis

Categorical Data Analysis for Probability Survey Data
cdf.est

Cumulative Distribution Function Estimate for Survey Design
Luck_Ash_streams

Streams in the Luckiamute Watershed in Oregon
cdf.nresp

Internal Function: Count Number of Responses Less Than a Set of Values
NE_lakes

Lakes in the Southern New England Region of the U.S.
attrisk.analysis

Attributable Risk Analysis for Probability Survey Data
attrisk.est

Compute the Attributable Risk Estimate
UT_ecoregions

Ecoregions in Utah
cdfvar.total

Variance Estimate for Cumulative Distribution Function for a Total
adjwgt

Adjust Survey Design Weights by Categories
FL_lakes

Small Lakes in Florida
cdf.test

Test for Difference Between Two Estimated Cumulative Distribution Functions
cell.wt

Total Inclusion Probablity for a Cell in a Matrix
IN_streams

Streams in the Upper Wabash Basin in Indiana
catvar.size

Variance Estimates of the Estimated Size for Categorical Data
cdf.decon

Deconvolution Estimate of the Cumulative Distribution Function
cont.cdfplot

Plot Multiple Cumulative Distribution Functions
albersgeod

Project Albers Projection in Plane to Latitude and Longitude (Spheroid)
ash1.wgt

Compute the Average Shifted Histogram (ASH) for Weighted Data
cont.cdftest

Cumulative Distribution Function Inference for a Probability Survey
dcdfvar.size.prop

Variance Estimate for Deconvoluted Size-weighed CDF for Proportion
dcdfvar.size.total

Variance Estimate of Deconvoluted Size-weighted CDF for Total
irsarea

Select an Independent Random Sample (IRS) of an Area Resource
cdf.test.prop

Estimate of Population Proportion for Classes
irslin

Select an Independent Random Sample (IRS) of a Linear Resource
mdmpts

Internal Function: GRTS Multipliers for Multi-Density Categories for Points
cdf.plot

Plot a Cumulatiave Distribution Function
panel_summary

Summary Characteristics of a Revisit Panel Design
shape2spList

Internal Function: Create Object of Class Lines or Class Polygons
simex

Internal Function: Extrapolation for Simulation-Extrapolation Function
cdf.prop

Estimate of Cumulative Distribution Function for a Proportion
cdf.size.prop

Size-weighted Cumulative Distribution Function Estimate
cdf.size.total

Size-weighted Cumulative Distribution Funcition Estimate for Total
cdfvar.size.total

Variance Estimate for Size-weighted Cumulative Distribution Function for a Total
NLA_2007

Western Mountains Ecoregion Lakes
cdfvar.test

Variance-Covariance Matrix Estimate for Estimated Population Proportions
cov.panel.dsgn

Covariance Matrix for a Panel Design
changevar.mean

Covariance or Correlation Matrix Estimate of Change in Means between Two Surveys
cdfvar.prop

Variance Estimate for Cumulative Distribution Function for a Proportion
cdfvar.size.prop

Variance Estimate for Size-Weighted Cumulative Distribution Function for a Proportion
NRSA_2009

Western Mountains Ecoregion Rivers and Streams
dcdf.prop

Deconvoluted Cumulative Distribution Function Estimate for Proportion
dcdf.total

Deconvoluted Cumulative Distribution Function for Total
geodalbers

Project Latitude/Longitude to Albers Projection
dcdfvar.prop

Variance Estimate for Deconvoluted CDF for Proportion
changevar.prop

Covariance or Correlation Matrix Estimate of Change in Class Proportions between Two Surveys
dframe.check

Internal Check on Survey Analysis Data Frames
grts

Select a Generalized Random-Tesselation Stratified (GRTS) Sample
grtsarea

Select a Generalized Random-Tesselation Stratified (GRTS) Sample of an Area Resource
dsgnsum

Summary of a Survey Design
grtslin

Select a Generalized Random-Tesselation Stratified (GRTS) Sample of a Linear Resource
localmean.cov

Internal Function: Variance-Covariance Matrix Based on Local Mean Estimator
interp.cdf

Interpolate CDF Values at a Set of Percentiles
dcdf.size.prop

Deconvoluted Size-Weighted Cumulative Distribution Function for Proportion
dcdf.size.total

Deconvoluted Size-weighted Cumulative Distribution function for Total
irs

Select an Independent Random Sample (IRS)
mdmarea

Internal Function: GRTS Multipliers for Multi-Density Categories for Areas
localmean.weight2

Internal Function: Recovery from a Singular Value Decomposition Error
localmean.df

Internal Function: Degrees of Freedom for Local Mean Variance-Covariance Estimator
marinus

Marinus Cylindrical Map Projection
mdmlin

Internal Function: GRTS Multipliers for Multi-Density Categories for Linear Network
change.analysis

Estimation of Change between Two Time Periods in a Probability Survey
change.est

Estimate Change between Two Surveys
changevar.size

Covariance or Correlation Matrix Estimate of Change in Class Resource Sizes between Two Surveys
read.shape

Read Single or Multiple ESRI Shapefiles
cont.analysis

Continuous Variable Data Analysis for Probability Survey Data
category.est

Category Proportion and Size Estimates
examine

Examine Variables in a Data Frame
catvar.prop

Variance Estimates of Estimated Proportions
framesum

Summary of the Sample Frame for a Survey Design
input.format

Format an Input Value
relrisk.analysis

Relative Risk Analysis for Probability Survey Data
relrisk.est

Relative Risk Estimate for 2x2 Table
interp.axis

Create Right-Side y-Axis Lables for a CDF Plot
localmean.weight

Internal Function: Local Mean Variance Neighbors and Weights
localmean.var

Internal Function: Local Mean Variance Estimator
selectpts

Internal Function: Select Probability Sample from a Set of Cells
cdf.test.size.prop

Size-Weighted Estimate of Population Proportion for Classes
read.dbf

Read the dbf File of an ESRI Shapefile
revisit_rand

Create a Revisit Design with Random Assignment to Panels and Time Periods
selectrecordID

Internal Function: Select Shapefile Record to Select Sample Point
vecprint

Internal Function: Create Vector to Print
sbcframe

Calculate Spatial Balance Grid Cell Extent and Proportions for a Sample Frame
relrisk.var

Variance-Covariance Estimate for the Relative Risk Estimator
read.sas

Read a SAS dataset or a SAS XPORT File
warnprnt

Internal Function: Print the Warnings Data Frame
spsurvey.analysis

Create an Object of Class spsurvey.analysis
sbcsamp

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

Internal Function: Determine if a Vector is Sorted
total.est

Estimators for Population Total, Mean, Variance, and Standard Deviation
sp2shape

Create ESRI Shapefile from sp Package Object
cdf.total

Estimate of Cumulative Distribution Function for a Total
selectframe

Internal Function: Select All Points in Survey Frame
wnas

Internal Function: Remove NAs from Data
uniqueID

Internal Function: Create Unique IDs for a Survey Design
total.var

Variance Estimate for Population Total, Mean, Variance, and Standard Deviation
dcdfvar.total

Variance Estimate of Deconvoluted CDF for Total
decon_data

Small Lakes in Florida for Examining CDF Deconvolution
write.dbf

Write a Data Frame as the dbf File of an ESRI Shapefile
write.object

Write an Object to a Plot
grtspts

Select a Generalized Random-Tesselation Stratified (GRTS) Sample of a Finite Resource
input.check

Check Input Values for Analytical Functions
irspts

Select an Independent Random Sample (IRS) of a Finite Resource
isotonic

Internal Function: Isotonic Regression
plot_powerpaneldesign

Plot Power Curves for Panel Designs
power.dsgn

Power Calculation for Multiple Panel Designs
revisit_bibd

Create a Balanced Incomplete Block Panel Revisit Design
revisit_dsgn

Create a Panel Revisit Design
spbalance

Calculate Spatial Balance Metrics for a Survey Design
spsurvey-package

spsurvey: Spatial Survey Design and Analysis
SpatialDesign-class

Class SpatialDesign