gjamFillMissingTimes: Fill out data for time series (state-space) gjam

Description Usage Arguments Details Value Author(s) References See Also Examples

View source: R/gjamHfunctions.R

Description

Fills in predictor, response, and effort matrics for time series data where there are multiple multivariate time series. Time series gjam is still under development.

Usage

1
2
  gjamFillMissingTimes(xdata, ydata, edata, groups, times, 
                       sequences=NULL, fillNA=T, fillTimes=T)

Arguments

xdata

n by Q data.frame holding predictor variables

ydata

n by S matrix holding response variables

edata

n by S matrix holding effort

groups

column name in xdata holding group indicator

times

column name in xdata holding time indicator

sequences

column name in xdata holding sequence indicator

fillNA

fill new rows in ydata with NA; otherwise interpolated value

fillTimes

insert rows for missing times: integers values in column times

Details

Fills missing times in xdata, ydata, edata. If fillTimes = TRUE insert rows for missing times, including a times = 0, which serves as a prior mean for times = 1. groups must be uniquely defined. Within groups can be sequences, as when there is a time series for groups for each year.

Value

A list containing the following:

xdata

filled version of xdata

ydata

filled version of ydata

edata

filled version of edata

timeZero

row numbers in new data where each time series begins, with times = 0

timeLast

row numbers in new data where each time series ends

rowInserts

row numbers for all inserted rows

noEffort

rows for which effort is zero, except times = 0

Author(s)

James S Clark, jimclark@duke.edu

References

Clark, J.S., D. Nemergut, B. Seyednasrollah, P. Turner, and S. Zhang. 2016. Generalized joint attribute modeling for biodiversity analysis: Median-zero, multivariate, multifarious data. Ecological Monographs, 87, 34-56.

See Also

gjam for more on xdata, ydata, and effort.

A more detailed vignette is can be obtained with:

browseVignettes('gjam')

web site 'http://sites.nicholas.duke.edu/clarklab/code/'.

Examples

1
2
3
4
## Not run: 
# under construction

## End(Not run)

dbystrova/GJAM_clust documentation built on Sept. 15, 2020, 5:46 p.m.