Dear Phil,
Thank you so much for your time to advise me.
I have attached the factors with a part of my data. Please find it. I couldn't attach the .jmp file, I saw this message: "The contents of the attachment doesn't match its file type.". So I put the image of steps and attached the excel sheet.
This experiment is factorial under RCBD. Genotype (4 levels, A, B, C, and D), Nutrient 1 (2 levels, 10 and 40), and Nutrient 2 (2 levels, 25 and 100) are factors in 4 blocks. Also, "Variable 1" and "Variable 2" are variables that I measured during the experiment period. In this file, I transformed the variables in logarithm.
For example, different "Genotype"s had a different effect on "Variable 2". While I just need the effects of "Nutrient 1" and "Nutrient 2" in the model. So, I want to remove the effect of "Genotype" from "Variable 1" and "Variable 2". For this purpose, first I used "Fit Y by X" for each variable by "Genotype", then I saved the residuals for each variable.
Step 1. Fit y by x.
In the second step, I used these residuals in "Fit model" by "Block, Nutrient 1, Nutrient 2, Nutrient 1*Nutrient 2" as full factorial. After that, I saved the residuals that I obtained from this method and used them as new variables.
I mentioned, "Step 1" and "Step 2" in "Data table" in this file. Also, "Step () - Variable ()" are residuals that I saved from each step for each variable. (I couldn't attach .jmp file). For these variables, I just removed two outliers that you can see them in this file (row 20 and 61).
Step 2.As a result when I used this method, regression between some of the variables is different. For example, regression between two variables would be changed to positive from negative.
Thank you so much,
Sincerely yours,
Milad
Milad Bagheri