# NOT RUN {
#Obtain the Cragg-Donald statistic for a model that instruments
#Sepal Width on Petal Length, Petal Width, and Species, while controlling
#for Sepal.Length (a toy example).
cragg_donald(X=~Sepal.Length, D=~Sepal.Width,
Z=~Petal.Length + Petal.Width + Species, data = iris)
# }
Run the code above in your browser using DataLab