Skip to content
Prev 6511 / 20628 Next

specification of corAR1()

Hi all, I am struggling to learn to use corAR1() correlation structure. Let me use the Machines data set from nlme package as an example:

I added a time variable to create a new dataset:
This one runs without any problem:
But all of the following generated the same error message:
"Error in abs(value) : Non-numeric argument to mathematical function"

Did I misunderstand something here?

Thanks very much!

John