Split longitudinal data into training and test set, where the training set lags the test set by an amount "lag". e.g predict an outcome at lag=x hospital visits in advanced. There must be at least 2 repeated measurements for each unit
1 2 | LongiLagSplit(dat, id, rhs.vars, resp.vars, order.vars = "time",
lag = 1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.