A custom function to insert rows in long data with new pseudo-observations
that are being done on the specified break ages. There should be a
data with logical data that codes whether
the current row is the first for subject
the function assumes that columns
bmi.z are available. This function is used on the
data in FIMD chapter 9. Check that out to see it in action.
appendbreak(data, brk, warp.model = warp.model, id = NULL, typ = "pred")
A data frame in the long long format
A vector of break ages
A time warping model
The subject identifier
Label to signal that this is a newly added observation
A long data frame with additional rows for the break ages
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.