Re: [R] Error in gee.fit$working.correlation[1, 2] : subscript out of bounds

2020-06-05 Thread William Dunlap via R-help
The usual reason for the 'subscript out of bounds' error is that an array's subscripts exceed the dimensions of the array. In this case gee.fit$working.correlation is a 1 by 1 matrix, so subscripting with [1,2] will cause the error. Here is a self-contained example that you can send the

[R] Error in gee.fit$working.correlation[1, 2] : subscript out of bounds

2020-06-05 Thread Phat Chau
Hello, I have a dataframe in R that looks like the following cluster id period u_3 timeID startTrt Ijterror y 1: 1 1 0 -1.26 11 0 1.2015 17.809 2: 1 2 0 -1.26 11 0 -1.6577 14.950 3: 1 3 0 -1.26 11 0