calc_ydiffs | R Documentation |
Calculate Y_t - Y_t-1
calc_ydiffs(data, Tt)
data |
Wide format data frame with one row per individual, and columns Yt for t = 0,1,...,Tt. |
Tt |
int. Final period in dataset (t=0,1,...,Tt) |
matrix with nrow(data) rows and Tt columns, each with values of Y_t - Y_t-1 for t=1,2,...,Tt.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.