I have used
expand_design() to create an object with many designs. Is there an easy way to replace a single step in all those designs (a new outcome formula, for example)?
With my already-created object
designs, I try
designs_new <- designs %>% replace_step(model, declare_model(N = pop_size, U = rnorm(N), potential_outcomes(Y ~ Z + U)))
and get back
Error: Please send a single design object to the design argument, typically created using the + operator.