xts - Choosing correct data type for dynrq in quantreg R package -
i'm trying run dynamic linear regression on data:
require(rcurl) y <- read.csv(text=geturl("https://raw.githubusercontent.com/zmilhard/helloworld/master/growth_data_2.csv")) explore <- y[1:87,2:21]
i use 3 different formulas try run regression:
require(zoo) dlr <- dynrq(explore ~ l(explore,1) + l(explore,12), tau = 99/100) dlr <- dynrq(explore ~ l(explore,1) + l(explore,20), tau = 99/100) dlr <- dynrq(explore ~ l(explore,1) + l(explore,20), tau = 99/100, start = c(2,1), end = c(87,20))
i keep getting error:
error in hastsp(x) : invalid time series parameters specified
explore list. the example uses data of double type. when convert data double using this solution same error. need use time series variable such xts? formulas faulty?
Comments
Post a Comment