Data Science, Machine Learning, Rstats, Regression.
function in WhatIf version ≥1.5–8 finds whether counterfactuals that we have set using Zelig’s setx method are in- or outside of the convex hull. For example: library(Zelig) library(WhatIf) library(dplyr) # Estimate model and set fitted values out <- zelig(Petal.Width ~ Petal.Length + Sepal.Length,