# NOT RUN {
#Perform the Stock and Yogo test on a model that instruments
#Sepal Width on Petal Length, Petal Width, and Species, while controlling
#for Sepal.Length (a toy example).
stock_yogo_test(X=~Sepal.Length, D=~Sepal.Width,
Z=~Petal.Length + Petal.Width + Species,
size_bias="bias",data = iris)
# }
Run the code above in your browser using DataLab