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.5)sptotal_1.0.1.zip(r-4.4)sptotal_1.0.1.zip(r-4.3)
sptotal_1.0.1.tgz(r-4.4-any)sptotal_1.0.1.tgz(r-4.3-any)
sptotal_1.0.1.tar.gz(r-4.5-noble)sptotal_1.0.1.tar.gz(r-4.4-noble)
sptotal_1.0.1.tgz(r-4.4-emscripten)sptotal_1.0.1.tgz(r-4.3-emscripten)
sptotal.pdf |sptotal.html
sptotal/json (API)
NEWS

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

Peer review:

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

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

On CRAN:

11 exports 4 stars 1.40 score 28 dependencies 10 scripts 269 downloads

Last updated 1 months agofrom:923eddce56. Checks:OK: 7. Indexed: yes.

TargetResultDate
Doc / VignettesOKSep 08 2024
R-4.5-winOKSep 08 2024
R-4.5-linuxOKSep 08 2024
R-4.4-winOKSep 08 2024
R-4.4-macOKSep 08 2024
R-4.3-winOKSep 08 2024
R-4.3-macOKSep 08 2024

Exports:check.variogramgeostatSimget.predinfoget.predplotGR2LLtoTMloglik.slmfitpointSimSystslmfitstratafitsv

Dependencies:clicolorspacefansifarverggplot2gluegtableisobandlabelinglatticelifecyclemagrittrMASSMatrixmgcvmunsellnlmepillarpkgconfigR6RColorBrewerrlangscalestibbleutf8vctrsviridisLitewithr

Inference for Totals and Weighted Sums from Finite Spatial Populations

Rendered fromsptotal-vignette.Rmdusingknitr::rmarkdownon Sep 08 2024.

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