Description Details Note Author(s) References
Ives et al. (2003) describe the model framework implemented in this package:
X(t) = A + BX(t-1) + CU(t-1) + E(t)
The first order multivariate autoregressive model may include both variates (factors expected to affect their own dynamics and the dynamics of other variates) and covariates (factors that may affect the dynamics of variates but are unlikely to be correspondingly influenced by them). The model estimates the value of each variate at time t as a linear function of the values of all variates and covariates at time t-1. The coefficients estimated in the MAR model represent the relative interaction strengths between each variate and covariate included in the analysis.
The MAR1 package includes the following basic functions:
prepare.data
Formats a dataset into evenly-spaced time-steps and marks continuous blocks of time-steps in preparation for MAR analysis. The data can also be log-transformed or z-scored with this function.
run.mar
Searches for and estimates a MAR model for a given dataset. The random best-fit model search and conditional least squares calculation components of this function are derived from Matlab scripts originally written by AR Ives and subsequently refined by SR Carpenter, KL Cottingham, and MD Scheuerell. Returns a list object of class MAR for which there are print
, summary
, and plot
methods.
export.MAR
Creates a new directory and exports all components of a MAR object into that directory as csv files.
This package uses the tcltk package to create pop-up windows. On Mac OS X systems, installation of the Tcl/Tk 8.5.5 library for X11 may be necessary before the Tcl/Tk interface can successfully load. See http://cran.r-project.org/bin/macosx/tools/ for details.
Lindsay P. Scheef
Maintainer: <scheef@utexas.edu>
Ives AR, Dennis B, Cottingham KL, and Carpenter SR (2003) Estimating community stability and ecological interactions from time-series data. Ecological Monographs 73:301-330
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.