Question: 4.7. For designed experiments it is often useful to predict the response at each combination of levels of the treatment factors. Write a function expand.
4.7. For designed experiments it is often useful to predict the response at each combination of levels of the treatment factors. Write a function expand. factors which takes any number of factor arguments and returns a data frame with the factors as columns and each combination of levels occurring as exactly once row.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
