我想使用这些向量制作一个gls模型:
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)
要继续,我做了:
gls(v1 ~ year, correlation=(corAR1(value = acf(v1, lag.max = 1)$acf[2])))
我收到以下错误:
Error in gls(v1 ~ year, correlation = corAR1(value = acf(v1, : singular convergence (7)
你知道问题在哪里以及我如何解决它?
答案 0 :(得分:0)
向量v1的值-0.40586830连续重复多次,导致与AR1完美契合。