[Gmm-commits] r160 - pkg/causalGel/vignettes

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Wed Dec 4 18:26:25 CET 2019


Author: chaussep
Date: 2019-12-04 18:26:24 +0100 (Wed, 04 Dec 2019)
New Revision: 160

Modified:
   pkg/causalGel/vignettes/causalGel.Rnw
   pkg/causalGel/vignettes/causalGel.pdf
Log:
fixed error in the vignette

Modified: pkg/causalGel/vignettes/causalGel.Rnw
===================================================================
--- pkg/causalGel/vignettes/causalGel.Rnw	2019-12-04 16:32:33 UTC (rev 159)
+++ pkg/causalGel/vignettes/causalGel.Rnw	2019-12-04 17:26:24 UTC (rev 160)
@@ -127,6 +127,7 @@
 \date{\today}
 
 <<extract, message=FALSE, warning=FALSE, echo=FALSE>>=
+library(causalGel)    
 library(texreg)
 setMethod("extract", "causalGelfit", 
           function(model, includeSpecTest=FALSE, 
@@ -675,6 +676,19 @@
 checkConv(fit)
 @ 
 
+It compares sample moments of $\mu(X)$ for each group, using the
+estimated implied probabilities. We can then see if the balancing was
+achieved. As an example, the first column is $[\sum_{i=1}^n
+  \phat_i(1-Z_i)\mu(X_i)]/[\sum_{i=1}^n \phat_i(1-Z_i)]$, and the
+second column is $[\sum_{i=1}^n \phat_iZ_i\mu(X_i)]/[\sum_{i=1}^n
+  \phat_iZ_i]$, which are respectively estimates of $\Ex(\mu(X)|Z=0)$
+and $\Ex(\mu(X)|Z=1)$. We can see that the moments are well balanced,
+at least up to six decimals.
+
+\section{The aceGEL function}
+
+
+
 \bibliography{causal}
 
 \appendix

Modified: pkg/causalGel/vignettes/causalGel.pdf
===================================================================
(Binary files differ)



More information about the Gmm-commits mailing list