{
  "_id": "6a107c89acfb0bcc41cae33f",
  "Package": "sptotal",
  "Type": "Package",
  "Title": "Predicting Totals and Weighted Sums from Spatial Data",
  "Version": "1.0.1",
  "Authors@R": "c(\nperson(\"Matt\", \"Higham\", email = \"mhigham@stlawu.edu\", role = c(\"cre\", \"aut\")),\nperson(\"Jay\", \"Ver Hoef\", email = \"jay.verhoef@noaa.gov\", role = \"aut\"),\nperson(\"Bryce\", \"Frank\", email = \"bryce.frank@oregonstate.edu\", role = \"aut\"),\nperson(\"Michael\", \"Dumelle\", email = \"Dumelle.Michael@epa.gov\", role = \"aut\",\ncomment = c(ORCID = \"0000-0002-3393-5529\")))",
  "Description": "Performs predictions of totals and weighted sums, or\nfinite population block kriging, on spatial data using the\nmethods in Ver Hoef (2008) <doi:10.1007/s10651-007-0035-y>. The\nprimary outputs are an estimate of the total, mean, or weighted\nsum in the region, an estimated prediction variance, and a plot\nof the predicted and observed values. This is useful primarily\nto users with ecological data that are counts or densities\nmeasured on some sites in a finite area of interest. Spatial\nprediction for the total count or average density in the entire\nregion can then be done using the functions in this package.",
  "License": "GPL (>= 2)",
  "Encoding": "UTF-8",
  "LazyData": "true",
  "RoxygenNote": "7.2.1",
  "BugReports": "https://github.com/highamm/sptotal/issues",
  "VignetteBuilder": "knitr, rmarkdown",
  "URL": "https://highamm.github.io/sptotal/index.html",
  "Config/testthat/edition": "3",
  "Repository": "https://highamm.r-universe.dev",
  "Date/Publication": "2024-08-09 14:49:58 UTC",
  "RemoteUrl": "https://github.com/highamm/sptotal",
  "RemoteRef": "HEAD",
  "RemoteSha": "923eddce5689aa4c0e04576882af2fc5b2ac899b",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-05-06 07:06:58 UTC",
    "User": "root"
  },
  "Author": "Matt Higham [cre, aut],\nJay Ver Hoef [aut],\nBryce Frank [aut],\nMichael Dumelle [aut] (ORCID: <https://orcid.org/0000-0002-3393-5529>)",
  "Maintainer": "Matt Higham <mhigham@stlawu.edu>",
  "MD5sum": "2f1aa4ddab9b7db19427c45f5cb9b809",
  "_user": "highamm",
  "_type": "src",
  "_file": "sptotal_1.0.1.tar.gz",
  "_fileid": "2ee20a9b2a7d3e47191cb37bd9000133a1510f62c3574deb5a1ca15dc3826626",
  "_filesize": 1862722,
  "_sha256": "2ee20a9b2a7d3e47191cb37bd9000133a1510f62c3574deb5a1ca15dc3826626",
  "_created": "2026-05-06T07:06:58.000Z",
  "_published": "2026-05-22T15:55:53.223Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 77415420568,
      "time": 152,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "6824564066"
    },
    {
      "job": 77415420547,
      "time": 148,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6824560876"
    },
    {
      "job": 77415420740,
      "time": 209,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "6824568832"
    },
    {
      "job": 77415420531,
      "time": 151,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6824555032"
    },
    {
      "job": 77415420350,
      "time": 216,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6824525736"
    },
    {
      "job": 77415420049,
      "time": 111,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7164818186"
    },
    {
      "job": 77415420514,
      "time": 104,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "6824551226"
    },
    {
      "job": 77415420805,
      "time": 98,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "6824549974"
    },
    {
      "job": 77415420466,
      "time": 98,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6824549699"
    }
  ],
  "_buildurl": "https://github.com/r-universe/highamm/actions/runs/25421259552",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/highamm/sptotal",
  "_commit": {
    "id": "923eddce5689aa4c0e04576882af2fc5b2ac899b",
    "author": "Matt Higham <mhigham@stlawu.edu>",
    "committer": "Matt Higham <mhigham@stlawu.edu>",
    "message": "fixed a bug with stratafit and added a test to ensure the fix does not break without us knowing.\n",
    "time": 1723214998
  },
  "_maintainer": {
    "name": "Matt Higham",
    "email": "mhigham@stlawu.edu",
    "login": "highamm",
    "uuid": 34220951
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.5.0",
      "role": "Depends"
    },
    {
      "package": "ggplot2",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    },
    {
      "package": "prettydoc",
      "role": "Suggests"
    },
    {
      "package": "tibble",
      "role": "Suggests"
    },
    {
      "package": "gstat",
      "role": "Suggests"
    },
    {
      "package": "graphics",
      "role": "Suggests"
    }
  ],
  "_owner": "highamm",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [],
  "_tags": [],
  "_stars": 4,
  "_contributors": [
    {
      "user": "highamm",
      "count": 198,
      "uuid": 34220951
    },
    {
      "user": "jayverhoef",
      "count": 35,
      "uuid": 889055
    },
    {
      "user": "michaeldumelle",
      "count": 13,
      "uuid": 54114566
    },
    {
      "user": "brycefrank",
      "count": 10,
      "uuid": 24326298
    },
    {
      "user": "pmaurogut",
      "count": 8,
      "uuid": 24562941
    }
  ],
  "_userbio": {
    "uuid": 34220951,
    "type": "user",
    "name": "Matt Higham",
    "description": "I am an Assistant Professor in the Department of Statistics at St. Lawrence University. "
  },
  "_downloads": {
    "count": 296,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/sptotal"
  },
  "_devurl": "https://github.com/highamm/sptotal",
  "_searchresults": 11,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "extra/sptotal.html",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/highamm/sptotal",
  "_realowner": "highamm",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.1.0",
      "date": "2020-07-01"
    },
    {
      "version": "1.0.0",
      "date": "2021-07-06"
    },
    {
      "version": "1.0.1",
      "date": "2022-12-11"
    }
  ],
  "_exports": [
    "check.variogram",
    "geostatSim",
    "get.predinfo",
    "get.predplot",
    "GR2",
    "LLtoTM",
    "loglik.slmfit",
    "pointSimSyst",
    "slmfit",
    "stratafit",
    "sv"
  ],
  "_datasets": [
    {
      "name": "AKmoose_df",
      "title": "Data Set with Alaska Moose Counts.",
      "object": "AKmoose_df",
      "class": [
        "data.frame"
      ],
      "fields": [
        "elev_mean",
        "strat",
        "surveyed",
        "total",
        "x",
        "y",
        "lon",
        "lat"
      ],
      "rows": 860,
      "table": true,
      "tojson": true
    },
    {
      "name": "exampledataset",
      "title": "Data Set with Uncorrelated Poisson Counts.",
      "object": "exampledataset",
      "class": [
        "data.frame"
      ],
      "fields": [
        "counts",
        "pred1",
        "pred2",
        "xcoords",
        "ycoords",
        "dummyvar",
        "areavar"
      ],
      "rows": 40,
      "table": true,
      "tojson": true
    },
    {
      "name": "simdata",
      "title": "Simulated Spatially Autocorrelated Data.",
      "object": "simdata",
      "class": [
        "data.frame"
      ],
      "fields": [
        "x",
        "y",
        "X1",
        "X2",
        "X3",
        "X4",
        "X5",
        "X6",
        "X7",
        "F1",
        "F2",
        "Z",
        "wts1",
        "wts2"
      ],
      "rows": 400,
      "table": true,
      "tojson": true
    },
    {
      "name": "USlakes",
      "title": "Dissolved Organic Carbon in U.S. Lakes",
      "object": "USlakes",
      "class": [
        "data.frame"
      ],
      "fields": [
        "UID",
        "DOC_RESULT",
        "ELEVATION",
        "RVFPUNDWOODY_RIP",
        "FCIBIG_LIT",
        "RVFCGNDBARE_RIP",
        "RVFCGNDWOODY_RIP",
        "XCOORD",
        "YCOORD"
      ],
      "rows": 1206,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "AIC.slmfit",
      "title": "Extract the AIC from a 'slmfit' object for comparing models.",
      "topics": [
        "AIC.slmfit"
      ]
    },
    {
      "page": "AKmoose_df",
      "title": "Data Set with Alaska Moose Counts.",
      "topics": [
        "AKmoose_df"
      ]
    },
    {
      "page": "check.variogram-deprecated",
      "title": "Plot an Empirical Semi-Variogram of Residuals",
      "topics": [
        "check.variogram",
        "check.variogram-deprecated"
      ]
    },
    {
      "page": "coef.slmfit",
      "title": "Extract Model Coefficients from a 'slmfit' object",
      "topics": [
        "coef.slmfit"
      ]
    },
    {
      "page": "corModelExponential",
      "title": "Spatial Correlation Models",
      "topics": [
        "corModelExponential",
        "corModelGaussian",
        "corModelSpherical"
      ]
    },
    {
      "page": "exampledataset",
      "title": "Data Set with Uncorrelated Poisson Counts.",
      "topics": [
        "exampledataset"
      ]
    },
    {
      "page": "fitted.slmfit",
      "title": "Extract Fitted Values from an 'slmfit' object.",
      "topics": [
        "fitted.slmfit"
      ]
    },
    {
      "page": "geostatSim",
      "title": "Simulate geostatistical data on set of given locations",
      "topics": [
        "geostatSim"
      ]
    },
    {
      "page": "get.predinfo-deprecated",
      "title": "Display basic summary information in a tabular form.",
      "topics": [
        "get.predinfo",
        "get.predinfo-deprecated"
      ]
    },
    {
      "page": "get.predplot-deprecated",
      "title": "Create a default map from predictions",
      "topics": [
        "get.predplot",
        "get.predplot-deprecated"
      ]
    },
    {
      "page": "GR2",
      "title": "Computes the Generalized R-squared.",
      "topics": [
        "GR2"
      ]
    },
    {
      "page": "LLtoTM",
      "title": "Convert Lat and Long to Transverse Mercator (TM)",
      "topics": [
        "LLtoTM"
      ]
    },
    {
      "page": "logLik.slmfit",
      "title": "Extract Log-Likelihood from a fitted class 'slmfit' object",
      "topics": [
        "loglik.slmfit"
      ]
    },
    {
      "page": "m2LL.FPBK.nodet",
      "title": "Covariance Parameter Estimation Function.",
      "topics": [
        "m2LL.FPBK.nodet"
      ]
    },
    {
      "page": "mginv",
      "title": "Constructing the generalized inverse of a matrix",
      "topics": [
        "mginv"
      ]
    },
    {
      "page": "plot.predict.slmfit",
      "title": "Create a default map from predictions",
      "topics": [
        "plot.predict.slmfit"
      ]
    },
    {
      "page": "plot.slmfit",
      "title": "Plot an Empirical Semi-Variogram of Residuals",
      "topics": [
        "plot.slmfit"
      ]
    },
    {
      "page": "pointSimCSR",
      "title": "simulate completely spatially random point patterns.",
      "topics": [
        "pointSimCSR"
      ]
    },
    {
      "page": "pointSimSyst",
      "title": "Creates a systematic grid of points.",
      "topics": [
        "pointSimSyst"
      ]
    },
    {
      "page": "predict.slmfit",
      "title": "Perform Finite Population Block Kriging",
      "topics": [
        "predict.slmfit"
      ]
    },
    {
      "page": "predict.stratafit",
      "title": "Perform Finite Population Block Kriging",
      "topics": [
        "predict.stratafit"
      ]
    },
    {
      "page": "print.predict.slmfit",
      "title": "Prints a short summary for the 'predict.slmfit()' function.",
      "topics": [
        "print.predict.slmfit"
      ]
    },
    {
      "page": "print.predict.stratafit",
      "title": "Prints a short summary for the 'predict.stratafit()' function.",
      "topics": [
        "print.predict.stratafit"
      ]
    },
    {
      "page": "print.slmfit",
      "title": "Prints the fitted coefficient table of a fitted spatial linear model.",
      "topics": [
        "print.slmfit"
      ]
    },
    {
      "page": "print.summary.slmfit",
      "title": "Prints the summary of a fitted spatial linear model.",
      "topics": [
        "print.summary.slmfit"
      ]
    },
    {
      "page": "residuals.slmfit",
      "title": "Extract Model Residuals from an 'slmfit' object.",
      "topics": [
        "residuals.slmfit"
      ]
    },
    {
      "page": "simdata",
      "title": "Simulated Spatially Autocorrelated Data.",
      "topics": [
        "simdata"
      ]
    },
    {
      "page": "slmfit",
      "title": "Fits a Spatial Linear Model",
      "topics": [
        "slmfit"
      ]
    },
    {
      "page": "sptotal",
      "title": "sptotal: A package used for performing Finite Population Block Kriging (FPBK) on polygonal count data.",
      "topics": [
        "sptotal-package",
        "sptotal"
      ]
    },
    {
      "page": "stratafit",
      "title": "Fits a Separate Spatial Linear Model for Each Stratum",
      "topics": [
        "stratafit"
      ]
    },
    {
      "page": "summary.slmfit",
      "title": "Summarizes a fitted spatial linear model.",
      "topics": [
        "summary.slmfit"
      ]
    },
    {
      "page": "summary.stratafit",
      "title": "Summarizes a fitted spatial linear model with a stratification variable..",
      "topics": [
        "summary.stratafit"
      ]
    },
    {
      "page": "sv",
      "title": "Semi-variogram computation",
      "topics": [
        "sv"
      ]
    },
    {
      "page": "USlakes",
      "title": "Dissolved Organic Carbon in U.S. Lakes",
      "topics": [
        "USlakes"
      ]
    }
  ],
  "_readme": "https://github.com/highamm/sptotal/raw/HEAD/README.md",
  "_rundeps": [
    "cli",
    "cpp11",
    "farver",
    "ggplot2",
    "glue",
    "gtable",
    "isoband",
    "labeling",
    "lifecycle",
    "R6",
    "RColorBrewer",
    "rlang",
    "S7",
    "scales",
    "vctrs",
    "viridisLite",
    "withr"
  ],
  "_vignettes": [
    {
      "source": "sptotal-vignette.Rmd",
      "filename": "sptotal-vignette.html",
      "title": "Inference for Totals and Weighted Sums from Finite Spatial Populations",
      "author": "Matt Higham, Jay M. Ver Hoef, Bryce M. Frank, Michael Dumelle",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Introduction",
        "Data",
        "Data Frame Structure",
        "Simulated Data Creation",
        "Using the sptotal Package",
        "Fitting a Spatial Linear Model: slmfit",
        "Prediction: predict",
        "Examining results: plot()",
        "Prediction for a Small Area of Interest",
        "Real Data Examples",
        "Moose Abundance from Aerial Surveys",
        "Fitting the Model and Obtaining Predictions",
        "Allowing Different Covariance Parameters for Strata",
        "Sites with Different Areas",
        "Mean Dissolved Organic Carbon from National Lakes Data",
        "Creating a Subsample Data Set",
        "Fitting the Model and Making Predictions",
        "Appendix: Statistical Background",
        "Citation",
        "References"
      ],
      "created": "2019-02-20 18:04:10",
      "modified": "2023-04-13 18:22:57",
      "commits": 51
    }
  ],
  "_score": 4.944482672150169,
  "_indexed": true,
  "_nocasepkg": "sptotal",
  "_universes": [
    "highamm"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.0.1",
      "date": "2026-05-06T07:09:24.000Z",
      "distro": "noble",
      "commit": "923eddce5689aa4c0e04576882af2fc5b2ac899b",
      "fileid": "58ef15133cc1c2b96669ee5a75e8d8316db1a5d77f84eb06b619efdad22c6cc2",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/highamm/actions/runs/25421259552"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "1.0.1",
      "date": "2026-05-06T07:09:13.000Z",
      "distro": "noble",
      "commit": "923eddce5689aa4c0e04576882af2fc5b2ac899b",
      "fileid": "00febfe9a27cc697b7f11e90d65427ce00cec6e16df9a249f5484607c0e635ff",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/highamm/actions/runs/25421259552"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.0.1",
      "date": "2026-05-06T07:09:47.000Z",
      "commit": "923eddce5689aa4c0e04576882af2fc5b2ac899b",
      "fileid": "8de9829fddc35ff958761170b7d1234eaec1d5f988a254f77e845ce3604cd8bf",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/highamm/actions/runs/25421259552"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "1.0.1",
      "date": "2026-05-06T07:08:53.000Z",
      "commit": "923eddce5689aa4c0e04576882af2fc5b2ac899b",
      "fileid": "0939cac55cec158e99f0c18997ccea7e64ae2ae06255a1646d58b36c989ce74b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/highamm/actions/runs/25421259552"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.0.1",
      "date": "2026-05-06T07:08:22.000Z",
      "commit": "923eddce5689aa4c0e04576882af2fc5b2ac899b",
      "fileid": "64a48f54a84a1c30299555d8729e400409e99802e890514298e8d42b874e436a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/highamm/actions/runs/25421259552"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "1.0.1",
      "date": "2026-05-06T07:08:18.000Z",
      "commit": "923eddce5689aa4c0e04576882af2fc5b2ac899b",
      "fileid": "ca769887a21db14c9bf0424740c149b9f758e120c9cc22b975543850b1f6163a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/highamm/actions/runs/25421259552"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "1.0.1",
      "date": "2026-05-06T07:08:16.000Z",
      "commit": "923eddce5689aa4c0e04576882af2fc5b2ac899b",
      "fileid": "ea02b98332491604d6d4f3b6e5c305dc49cc875bac73e2f5f468541a6eed4a73",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/highamm/actions/runs/25421259552"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.0.1",
      "date": "2026-05-22T15:55:33.000Z",
      "commit": "923eddce5689aa4c0e04576882af2fc5b2ac899b",
      "fileid": "cae79253c0ea36a17700f9eb829100acf1ea68aec9cb48c78d71c00842719472",
      "status": "success",
      "buildurl": "https://github.com/r-universe/highamm/actions/runs/25421259552"
    }
  ]
}