Package: sptotal 1.0.1

sptotal: Predicting Totals and Weighted Sums from Spatial Data

Performs predictions of totals and weighted sums, or finite population block kriging, on spatial data using the methods in Ver Hoef (2008) <doi:10.1007/s10651-007-0035-y>. The primary outputs are an estimate of the total, mean, or weighted sum in the region, an estimated prediction variance, and a plot of the predicted and observed values. This is useful primarily to users with ecological data that are counts or densities measured on some sites in a finite area of interest. Spatial prediction for the total count or average density in the entire region can then be done using the functions in this package.

Authors:Matt Higham [cre, aut], Jay Ver Hoef [aut], Bryce Frank [aut], Michael Dumelle [aut]

sptotal_1.0.1.tar.gz
sptotal_1.0.1.zip(r-4.7)sptotal_1.0.1.zip(r-4.6)sptotal_1.0.1.zip(r-4.5)
sptotal_1.0.1.tgz(r-4.6-any)sptotal_1.0.1.tgz(r-4.5-any)
sptotal_1.0.1.tar.gz(r-4.7-any)sptotal_1.0.1.tar.gz(r-4.6-any)
sptotal_1.0.1.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
sptotal/json (API)
NEWS

# Install 'sptotal' in R:
install.packages('sptotal', repos = c('https://highamm.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/highamm/sptotal/issues

Datasets:
  • AKmoose_df - Data Set with Alaska Moose Counts.
  • exampledataset - Data Set with Uncorrelated Poisson Counts.
  • simdata - Simulated Spatially Autocorrelated Data.
  • USlakes - Dissolved Organic Carbon in U.S. Lakes

On CRAN:

Conda:

4.94 score 4 stars 11 scripts 296 downloads 11 exports 17 dependencies

Last updated from:923eddce56. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK152
source / vignettesOK216
linux-release-x86_64OK148
macos-release-arm64OK151
macos-oldrel-arm64OK209
windows-develOK104
windows-releaseOK98
windows-oldrelOK98
wasm-releaseOK111

Exports:check.variogramgeostatSimget.predinfoget.predplotGR2LLtoTMloglik.slmfitpointSimSystslmfitstratafitsv

Dependencies:clicpp11farverggplot2gluegtableisobandlabelinglifecycleR6RColorBrewerrlangS7scalesvctrsviridisLitewithr

Inference for Totals and Weighted Sums from Finite Spatial Populations

Rendered fromsptotal-vignette.Rmdusingknitr::rmarkdownon May 06 2026.

Last update: 2023-04-13
Started: 2019-02-20

Readme and manuals

Help Manual

Help pageTopics
Extract the AIC from a 'slmfit' object for comparing models.AIC.slmfit
Data Set with Alaska Moose Counts.AKmoose_df
Plot an Empirical Semi-Variogram of Residualscheck.variogram check.variogram-deprecated
Extract Model Coefficients from a 'slmfit' objectcoef.slmfit
Spatial Correlation ModelscorModelExponential corModelGaussian corModelSpherical
Data Set with Uncorrelated Poisson Counts.exampledataset
Extract Fitted Values from an 'slmfit' object.fitted.slmfit
Simulate geostatistical data on set of given locationsgeostatSim
Display basic summary information in a tabular form.get.predinfo get.predinfo-deprecated
Create a default map from predictionsget.predplot get.predplot-deprecated
Computes the Generalized R-squared.GR2
Convert Lat and Long to Transverse Mercator (TM)LLtoTM
Extract Log-Likelihood from a fitted class 'slmfit' objectloglik.slmfit
Covariance Parameter Estimation Function.m2LL.FPBK.nodet
Constructing the generalized inverse of a matrixmginv
Create a default map from predictionsplot.predict.slmfit
Plot an Empirical Semi-Variogram of Residualsplot.slmfit
simulate completely spatially random point patterns.pointSimCSR
Creates a systematic grid of points.pointSimSyst
Perform Finite Population Block Krigingpredict.slmfit
Perform Finite Population Block Krigingpredict.stratafit
Prints a short summary for the 'predict.slmfit()' function.print.predict.slmfit
Prints a short summary for the 'predict.stratafit()' function.print.predict.stratafit
Prints the fitted coefficient table of a fitted spatial linear model.print.slmfit
Prints the summary of a fitted spatial linear model.print.summary.slmfit
Extract Model Residuals from an 'slmfit' object.residuals.slmfit
Simulated Spatially Autocorrelated Data.simdata
Fits a Spatial Linear Modelslmfit
sptotal: A package used for performing Finite Population Block Kriging (FPBK) on polygonal count data.sptotal-package sptotal
Fits a Separate Spatial Linear Model for Each Stratumstratafit
Summarizes a fitted spatial linear model.summary.slmfit
Summarizes a fitted spatial linear model with a stratification variable..summary.stratafit
Semi-variogram computationsv
Dissolved Organic Carbon in U.S. LakesUSlakes