I would like to make a gls model using these vectors:
v1 <- c( 3.27985464, -0.40586830, -0.40586830, -0.09872472, -0.09872472, -0.40586830, -0.40586830, 0.82270601, -0.40586830, -0.40586830, -0.25229651, -0.40586830, -0.40586830, -0.40586830)
year <- c(2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014)
To proceed I did:
gls(v1 ~ year, correlation=(corAR1(value = acf(v1, lag.max = 1)$acf[2])))
And I got the following error:
Error in gls(v1 ~ year, correlation = corAR1(value = acf(v1, : singular convergence (7)
Do you know where is the issue and how I could solve it?