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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Statistics Principles And Methods Questions!