Open inkrement opened 6 years ago
I haven't been able to diagnose the error yet, but just take a look at the normalization implementation to make sure that it is what you want:
## normalize
norm.para <- NULL
if (normalize == TRUE) {
sd.Y <- sd(as.matrix(data[,Yname]))
data[,c(Yname, Xname)] <- data[,c(Yname, Xname)]/sd.Y
norm.para <- sd.Y ## normalized parameter
}
If you want column-wise normalization, I recommend doing it prior to running gsynth.
Ok, I haven't checked the source code in detail. But it is weird that there is no reference to eff.cnt in your extract. However, just removing the flag lead to a successful run.
Thank you, Christian. We'll deal with it soon!
On Mon, May 14, 2018 at 11:27 AM, Christian Hotz-Behofsits < notifications@github.com> wrote:
Ok, I haven't checked the source code in detail. But it is weird that there is no reference to eff.cnt in your extract. However, just removing the flag lead to a successful run.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/xuyiqing/gsynth/issues/14#issuecomment-388916357, or mute the thread https://github.com/notifications/unsubscribe-auth/AHT1GAl5GhIZuk_oE0PCUGT7aS_YSg7Nks5tycycgaJpZM4T9RCC .
-- Yiqing Xu
Assistant Professor Department of Political Science University of California, San Diego http://yiqingxu.org/
Even a basic regression like:
fails, when I set the option normalize to True. The output indicates a unspecified variable:
ps: I am using the newest version (github-master).