The test statistic above does not reproduce Stata results when there is more than one endogenous variable. While the code to compute the test statistic appears to be correct, the difference may lie in Stata computing the test statistic based on canonical correlations rather than the formula in Stock and Yogo (2005).
dm. Daniel Malter wrote > > You find code to compute the Cragg-Donald Wald F test statistic to test > for weak instruments (e.g., Stock and Yogo, 2005) below with a working > example. The code reproduces the results from Stata 12 using the same data > (see bottom of this email), but further testing is needed. Use at your own > risk. The Cragg-Donald Wald F statistic is the smallest of the eigenvalues > of G (see the output of "eigen(G)" below). Critical values are found in > Stock and Yogo (2005). > > HTH, > Daniel Malter > > > -- View this message in context: http://r.789695.n4.nabble.com/Cragg-Donald-Wald-F-statistic-weak-instruments-tp4642457p4643338.html Sent from the R help mailing list archive at Nabble.com. ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.