[Gmm-commits] r67 - pkg/gmm/R

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Thu Nov 15 20:37:44 CET 2012


Author: chaussep
Date: 2012-11-15 20:37:44 +0100 (Thu, 15 Nov 2012)
New Revision: 67

Modified:
   pkg/gmm/R/momentEstim.R
Log:
bug fixed when vcov=iid

Modified: pkg/gmm/R/momentEstim.R
===================================================================
--- pkg/gmm/R/momentEstim.R	2012-11-15 19:14:22 UTC (rev 66)
+++ pkg/gmm/R/momentEstim.R	2012-11-15 19:37:44 UTC (rev 67)
@@ -193,8 +193,8 @@
 
   if (q == k2 | P$wmatrix == "ident")
     {
-    res <- .tetlin(dat, w, P$gradv, P$g)
-    z = list(coefficients = res$par, objective = res$value, dat = dat, k = k, k2 = k2, n = n, q = q, df = df)
+    res2 <- .tetlin(dat, w, P$gradv, P$g)
+    z = list(coefficients = res2$par, objective = res2$value, dat = dat, k = k, k2 = k2, n = n, q = q, df = df)
     }
   else
     {



More information about the Gmm-commits mailing list