Open burdonmark opened 4 years ago
Hi kbal has recently changed its syntax. I'm in the process of updating tjbal to keep up with kbal. Sorry about that.
On Thu, Jan 9, 2020 at 5:50 AM burdonmark notifications@github.com wrote:
Hello, When trying to replicate the example code https://yiqingxu.org/software/tjbal/tjbal_examples.R, the balancing processes give errors from the "Mean Balancing" section onwards. Only the DID example seems to work.
Here is the first error: mean balancing
out.mbal <- tjbal(roa ~ treat + so_portion + rev2007, data = npc,
-
index = c("gvkey","fyear"), kernel = FALSE, demean = FALSE,
-
bootstrap = TRUE, nboots = 20)
Seek balance on: roa2005, roa2006, roa2007, so_portion, rev2007
Optimization:
Error in kbal(X = data[, matchvar], D = data[, D], method = method, sigma = sigma[i], : unused arguments (X = data[, matchvar], D = data[, D], method = method, sigma = sigma[i], linkernel = (1 - kernel))
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/xuyiqing/tjbal/issues/6?email_source=notifications&email_token=AB2PKGHTRF3JBQA7DY67EQLQ44TUBA5CNFSM4KEYRMAKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IFCBIPA, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB2PKGHHIKTBY3HI2IBQQI3Q44TUBANCNFSM4KEYRMAA .
-- Yiqing Xu
Assistant Professor Department of Political Science Stanford University http://yiqingxu.org/
Hello, When trying to replicate the example code , the balancing processes give errors from the "Mean Balancing" section onwards. Only the DID example seems to work.
Here is the first error:
mean balancing
Seek balance on: roa2005, roa2006, roa2007, so_portion, rev2007
Optimization: Error in kbal(X = data[, matchvar], D = data[, D], method = method, sigma = sigma[i], : unused arguments (X = data[, matchvar], D = data[, D], method = method, sigma = sigma[i], linkernel = (1 - kernel))