starve is an R package for analyzing spatio-temporal point-referenced data, a data format typical of ecological research surveys.
You can install the package using
devtools::install_github("lawlerem/starve", build_vignettes = TRUE)
Once installed, the package vignette can be viewed by opening R and running
vignette("starve-tour", package = "starve")
This vignette acts as an in-depth reference for working with the starve package.
If you are having trouble creating the vignette during the package instruction, please make sure you have pandoc installed on your system.
With a simple interface, users of the package can spend more of their time and energy on learning from their data and less on how to code the steps of the data analysis. The starve package wraps its functionality in four main functions:
strv_prepare()
takes a model formula and a data.frame and pre-processes the data to create a model object which is then used in the other three functions.strv_fit()
performs maximum likelihood inference on a model object, obtaining parameter estimates and standard errors.strv_predict()
uses a model object to predict at user-defined locations and times.strv_simulate()
simulates a new dataset from a model object.One aspect of the package that some users may not be familiar with is the use of S4 classes, which we use for a model object (among other things).
For the user, S4 classes work similarly to lists but instead of using the $
symbol to access parts of the list you use functions to access part of an S4 class.
For example to view the parameter estimates after running strv_fit()
, you would use
parameters(x)
instead of
x$parameters
Full details for exploring a model object are given in the package vignette.
R has a rich spatial and spatio-temporal data ecosystem, see the CRAN Task views on Analysis of Spatial Data and Handling and Analyzing Spatio-Temporal Data. The starve package directly accepts the standard "simple features" spatial data format as implemented in the sf package, and also integrates use of the stars package for model predictions. This allows users to bypass many of the data wrangling steps that can be involved when analyzing spatio-temporal data, leading to a streamlined workflow.
The starve package uses a variety of techniques to make analysis computationally efficient, which has traditionally been the main limiting factor for analysis of spatio-temporal data.