Re: [R] lags for unbalanced panel data

2011-03-08 Thread Dieter Menne
Geoffrey Smith-3 wrote: > > Hello, I was wondering if there was an easy way to calculate the rate of > change in a variable for an unbalanced panel data set. Below is a > detailed > description in R of what I am asking. Thank you. Geoff > > A classic for mixed models, which simply does not

[R] lags for unbalanced panel data

2011-03-08 Thread Geoffrey Smith
Hello, I was wondering if there was an easy way to calculate the rate of change in a variable for an unbalanced panel data set. Below is a detailed description in R of what I am asking. Thank you. Geoff #Suppose I have the following unbalanced panel data; Person <- c(rep('Frank',5), rep('Tony'