Question: In R, simulate a dataset with a continuous outcome variable and two continuous exposure/treatment variables, and an interactive effect of the two exposures/treatments. Then, make
In R, simulate a dataset with a continuous outcome variable and two continuous exposure/treatment variables, and an interactive effect of the two exposures/treatments. Then, make a figure that shows the relationship between the outcome and one of the exposures, holding the other exposure constant at its minimum observed value. Finally, make a figure that shows the relationship between the outcome and the same exposure as above, holding the other exposure constant at its maximum observed value. Are these two figures different? Why?
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
