Open Elennahan opened 5 years ago
Does the density variable time-varying or time invariant?
On Fri, Mar 29, 2019 at 3:31 AM Elennahan notifications@github.com wrote:
when I tried to run the codes below
out.did <- tjbal(save ~ crank3+ density + gdp_per + ncincome + expendper + lendper + first + second + hospital + welfare, index = c("id","year"), Y.match.periods = "none", data = df, demean = TRUE, bootstrap = TRUE, nboots = 200)
It returned the result as
"density" is not time-invariant for some unit(s).
Hope you can give some advice, thanks in advance
— 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/4, or mute the thread https://github.com/notifications/unsubscribe-auth/AHT1GBNyX5rNUIB1eyWPYTFaY5K7DPLCks5vbet4gaJpZM4cSF2S .
-- Yiqing Xu
Assistant Professor Department of Political Science University of California, San Diego http://yiqingxu.org/
Dear Pro Xu, I try to run your example.But it gets error. library(panelView) library(gsynth) data(gsynth) panelView(turnout ~ policy_edr, data = turnout, index = c("abb","year"), by.timing = TRUE)
out <- tjbal(data = turnout, Y = "turnout", D = "policy_edr",
index = c("abb","year"), demean = TRUE, vce = "jackknife")
Balancing... Subgroup T0 = 14: bias.ratio = 0.5997; num.dims = 6 (mbal) Subgroup T0 = 19: bias.ratio = 0.4563; num.dims = 5 (mbal) Subgroup T0 = 22: bias.ratio = 0.2767; num.dims = 7 (mbal) Subgroup T0 = 23: bias.ratio = 0.3012; num.dims = 2 (mbal)
Jackknife...
Dropping units from Subgroup T0 = 14 Error in fun(A, k, nu, nv, opts, mattype = "matrix") : 'k' must satisfy 0 < k < min(nrow(A), ncol(A)). To calculate all singular values, try svd()
Thank you, I'll look into it!
On Sun, Feb 21, 2021 at 10:22 PM zdlspace0528 notifications@github.com wrote:
Dear Pro Xu, I try to run your example.But it gets error. library(panelView) library(gsynth) data(gsynth) panelView(turnout ~ policy_edr, data = turnout, index = c("abb","year"), by.timing = TRUE)
out <- tjbal(data = turnout, Y = "turnout", D = "policy_edr", index = c("abb","year"), demean = TRUE, vce = "jackknife")
Balancing... Subgroup T0 = 14: bias.ratio = 0.5997; num.dims = 6 (mbal) Subgroup T0 = 19: bias.ratio = 0.4563; num.dims = 5 (mbal) Subgroup T0 = 22: bias.ratio = 0.2767; num.dims = 7 (mbal) Subgroup T0 = 23: bias.ratio = 0.3012; num.dims = 2 (mbal)
Jackknife...
Dropping units from Subgroup T0 = 14
Error in fun(A, k, nu, nv, opts, mattype = "matrix") : 'k' must satisfy 0 < k < min(nrow(A), ncol(A)). To calculate all singular values, try svd()
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/xuyiqing/tjbal/issues/4#issuecomment-783120023, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB2PKGF7U4UN7AFHOYINWP3TAHZ2LANCNFSM4HCILWJA .
-- Yiqing Xu
Assistant Professor Department of Political Science University of California, San Diego http://yiqingxu.org/
when I tried to run the codes below
It returned the result as
Hope you can give some advice, thanks in advance