(please help, i'm a beginner in r and desperate for help)
i've been trying to estimate some dynamic linear model in r but nothing had been working for me. My data conserns a y as inflation (named in my excel:INFUSA) and x unemployment (named in my excel:CHOUSA). I used these command with package dlm (i use rstudio) :
model.dlm = dlm(formula = INFUSA ~ CHOUSA , data = CSFE , q = 1)
and this is the error: Error in dlm(formula = INFUSA ~ CHOUSA, data = CSFE, q = 1) : Component(s) m0, C0, FF, V, GG, W is (are) missing
i want a regression of this type: infusa(t)=constant+chousa(t-1) i'm not sure if i am using the right package, i want to try it with ardl command but i can't install it anymore in my version 3.6.0 and i don't know why.
So please if anyone can help with anything i would be very greatfull