Data Science, Machine Learning, Rstats, Regression.
data = iris, model = "ls", cite = FALSE) %>% setx(z.out, Petal.Length = 1:10) # Assess how extreme the counterfactuals are summary(whatif(data = out)) Here we set the fitted values (counterfactuals) of Petal.Length to range from 1 to 10. Sepal.Length is set at its mean in all of the