Now I want to obtain the values of slop coefficients of A and B in the below equation;
By = Ax + C, where I have 100 sets of x, y and C.
How can I solve this and get A & B by using R?
I am sorry for the incomplete explanation. I added more detail as below;
Now I have three values of y, x and C as follows:
y <- c(-9216.656,-9134.369,-9186.813,-8780.633,-9006.787)
x <- c(908.4656,932.6687,1015.0424,816.9116,703.2510)
C <- c(-8.965961,-8.883207,-8.935910,-8.546677,-8.766842)
What I know is the y, x and C can be explained as below equation;
By = Ax + C
In this case, can I decide the slope values of A and B, by using the known parameters of y, x and C?
For example, the equation can be written as below;
-9216.656*B = 908.4656*A -8.965961 (using y[1], x[1], C[1])
-9134.369*B = 932.6687*A -8.883207 (using y[2], x[2], C[2])
I would like to get the value of A and B that meet the equations above. If I understand correctly, each combination of two sets of y, x and C can produce sets of A and B.
Here, one set of y,x & C would produce one equation. I want to solve all combinations of the two equations. In this case, for the total number of combinations should be
choose(5, 2) = 10
.
Then, if I understand correctly, I would get 10 sets of A and B.
My final goal is to calculate the average & sd of each A and B.