need r code for a model

Hello, I am a new user of R studio. I am working on following model:

r1,t = a + bt r2,t + et
bt = c0 + c1D(r2q10) + c2D(r2q5) + c3D(r2q1)
ht = ω+ ϕ e2 t-1+ λht-1

How could i estimate this model in R studio

Get your data into a dataframe and then read up on the lm function (linear model).

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.