[Gmm-commits] r246 - in pkg/momentfit: . R

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Thu Aug 27 17:16:37 CEST 2026


Author: chaussep
Date: 2026-08-27 17:16:36 +0200 (Thu, 27 Aug 2026)
New Revision: 246

Modified:
   pkg/momentfit/DESCRIPTION
   pkg/momentfit/NEWS
   pkg/momentfit/R/momentWeights-methods.R
Log:
fixed a bug with HAC weighting matrix

Modified: pkg/momentfit/DESCRIPTION
===================================================================
--- pkg/momentfit/DESCRIPTION	2025-08-26 18:02:48 UTC (rev 245)
+++ pkg/momentfit/DESCRIPTION	2026-08-27 15:16:36 UTC (rev 246)
@@ -1,6 +1,6 @@
 Package: momentfit
-Version: 1.0
-Date: 2025-08-25
+Version: 1.0-1
+Date: 2026-08-26
 Title: Methods of Moments
 Authors at R: person(given="Pierre", family="Chausse", role=c("aut","cre"),
 	     	    email="pchausse at uwaterloo.ca")

Modified: pkg/momentfit/NEWS
===================================================================
--- pkg/momentfit/NEWS	2025-08-26 18:02:48 UTC (rev 245)
+++ pkg/momentfit/NEWS	2026-08-27 15:16:36 UTC (rev 246)
@@ -1,3 +1,7 @@
+Changes in version 1.0-1
+
+o Fixed a bug with HAC weighting matrix. There was an issue when the pivoting of its cholesky decomposition was not 1 to q. 
+
 Changes in version 1.0
 
 o Added Bartlett correction for EL-confidence interval of the mean.

Modified: pkg/momentfit/R/momentWeights-methods.R
===================================================================
--- pkg/momentfit/R/momentWeights-methods.R	2025-08-26 18:02:48 UTC (rev 245)
+++ pkg/momentfit/R/momentWeights-methods.R	2026-08-27 15:16:36 UTC (rev 246)
@@ -17,7 +17,7 @@
                       obj <- crossprod(x,w at w)%*%x
                   } else {
                       piv <- switch(w at type,
-                                    chol = attr(w, "pivot"),
+                                    chol = attr(w at w, "pivot"),
                                     qr = w at w$pivot,
                                     NULL)
                       if (genInv)
@@ -68,7 +68,7 @@
                       obj <- crossprod(x,w at w)%*%y
                   } else {
                       piv <- switch(w at type,
-                                    chol = attr(w, "pivot"),
+                                    chol = attr(w at w, "pivot"),
                                     qr = w at w$pivot,
                                     NULL)
                       if (genInv)
@@ -119,7 +119,7 @@
                       obj <- w at w
                   } else {
                       piv <- switch(w at type,
-                                    chol = attr(w, "pivot"),
+                                    chol = attr(w at w, "pivot"),
                                     qr = w at w$pivot,
                                     NULL)
                       if (genInv)



More information about the Gmm-commits mailing list