I have timeline data for inflation (x1
) and output (x2
) as well as the interest rate (e
). I want to check how well the data for x1
and x2
fit to e
when e
is always supposed to be e = 2 + 1.5x1 + 0.5x2.
Thus, I do not want to run a linear regression as the linear function you usually obtain from a lm()
is given already (already not the least squared one).
How can I construct a model object from my known equation?
Using the model specified by my equation, I would check the fit (p-value, adjR²) via summary()
. I could probably calculate the p-value and adjR² manually, but a simple command would make life much easier.