View source: R/gjamHfunctions.R
| gjamFillMissingTimes | R Documentation |
Fills in predictor, response, and effort matrics for time series data where there are multiple multivariate time series. Time series gjam is here https://htmlpreview.github.io/?https://github.com/jimclarkatduke/gjam/blob/master/gjamTimeMsVignette.html
gjamFillMissingTimes(xdata, ydata, edata, groupCol, timeCol, groupVars = groupCol,
FILLMEANS = FALSE, typeNames = NULL, missingEffort = .1)
xdata |
|
ydata |
|
edata |
|
groupCol |
column name in |
timeCol |
column name in |
groupVars |
|
FILLMEANS |
fill new rows in |
typeNames |
typenames current limited to |
missingEffort |
effort assigned to missing values of |
Missing times in the data occur where there are gaps in timeCol column of xdata and the initial time 0 for each sequence. New versions of the data have NA (xdata) or prior values with appropriate weight (ydata). Missing times are filled in xdata, ydata, edata, including a time 0 which serves as a prior mean for ydata for time 1. The group and time indices in columns groupCol and timeCol of xdata reference the time for a given time series. Missing values in the columns groupVars of xdata are filled automatically. This assumes that values for these variables are fixed for the group. If FILLMEANS, the missing values in ydata are filled with means for the group and given a low weight specified in missingEffort.
A list containing the following:
xdata |
filled version of |
ydata |
filled version of |
edata |
filled version of |
timeList |
time indices used for computation, including, |
James S Clark, jimclark@duke.edu
Clark, J. S., C. L. Scher, and M. Swift. 2020. The emergent interactions that govern biodiversity change. Proceedings of the National Academy of Sciences, 117, 17074-17083.
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/'.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.