I am trying to use a linear model with four values, A, B, C, D. Since I am using a sample, I tried to independently calculate the coefficients as to limit over fitting, and was able to calculate the values for C and D. I also know that the coefficient of A<B<C<D. Using the R lm function, I want to find the coefficients of A and B while assigning C and D their proper values and maintaining the constraints of all four variables. I attempted this by manually subtracting the calculated values of C and D from the response variable and doing a linear model with the adjusted response variable with just A and B, but I can't keep the constraints. Any help would be appreciated. Thank you!
This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.
If you have a query related to it or one of the replies, start a new topic and refer back with a link.