I have tried to add robust standard errors to the following model, but it doesn't seem to work, and gives the error below, what am I doing wrong?
Model <- tslm(Pris.pr.m2 ~
Lang.rente + Kort.rente + Forbrugerprisindeks +
Ledighed + Disponible.indkomst,
data = as.ts(Prisudvikling.data2))
coeftest(Model, vcov = vcovHC(Model, type = 'HC0'))
Error in rowMeans(ef/X, na.rm = TRUE) : 'x' must be an array of at least two dimensions
I have tried several functions for robust standard errors, but none of them seem to work unless I use the lm()
function instead