I am new to R and I have the following problem:
I have a simple two-factor linear model:
Rate~factor1 + factor2
model1 <- lm(Rate~factor1+factor2, data=myData)
And I want to put restrictions on SUM coefficients factor1 = 0, the same for factor2.
None of the guides provide clues on how to do this.
I found a link to a similar problem here , but it is different, and I could not figure out how to change it ...
source
share