Guided by the answer to this post:
Linear Regression with a known fixed intercept in R
I have fit an explicit intercept value to some data, but also an explicit slope, thus:
intercept <- 0.22483
fit <- lm(I(Response1 - intercept) ~ 0 + offset(-0.07115*Continuous))
Where Response1 is my dependent variable and Continuous is my explanatory variable, both from this dataset.
I want to plot an abline for my relationship. When only the intercept has been specified the post above recommends:
abline(intercept, coef(fit))
However I have no coefficients in the model "fit" as I specified them all. Is there a way to plot the abline for the relationship I specified?
abline
directly? – joranabline
based on coefs from the first dataset). – Thomas