-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error in matrix(panel$eff, T, N) : 找不到对象'panel' #55
Comments
I think it is a simulated dataset.
…On Tue, Feb 23, 2021 at 9:43 AM zdlspace0528 ***@***.***> wrote:
I run your codes in your paper,I get an error,
###################################
Figure A3: Individual effects
###################################
pdf("sim_iTE.pdf",width=7,height=10)
Ntr<-out$Ntr
Y.tr<-out$Y.tr
Y.ct<-out$Y.ct
eff<-out$eff
true.effect<-matrix(out$eff,30,50)[,1:5]
Error in matrix(panel$eff, T, N) : 找不到对象'panel'
数据中并没有panel,为什么您的代码中有panel 呢
新春快乐!
Raymond
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#55>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AB2PKGDSOF7CUCQSIZYZRU3TAPSMBANCNFSM4YC5KY2Q>
.
|
Dear Pro Xu, ############################## Figiure A6: Each State############################## out<-out.syn2 for (abb in states) { # treated states
|
为什么我用您的代码之后,上面第二幅图里没有置信区间呢? |
and also there is no Treatment Effect (GSC) line. |
This may be because the package has been updated and the syntax has
changed. Please resort to this page (
http://yiqingxu.org/software/gsynth/gsynth_examples.html) for more
information.
…On Tue, Feb 23, 2021 at 10:49 AM zdlspace0528 ***@***.***> wrote:
and also there is no Treatment Effect (GSC) line.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#55 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AB2PKGBUAIWEQFXP3P3KE2LTAP2CHANCNFSM4YC5KY2Q>
.
--
Yiqing Xu
Assistant Professor
Department of Political Science
University of California, San Diego
http://yiqingxu.org/
|
Dear Professor Xu,
I have simple question when I learn your paper “Trajectory Balancing: A General Reweighting Approach to Causal Inference with Time-Series Cross-Sectional Data.”(2020)
What is the meaning of “Trajectory Balancing” in Chinese?Can I translate it into “弹道平衡”?
Best regards
Raymond
| |
zdlspace
|
|
zdlspace@163.com
|
签名由网易邮箱大师定制
在2021年02月24日 08:40,Yiqing Xu<notifications@github.com> 写道:
This may be because the package has been updated and the syntax has
changed. Please resort to this page (
http://yiqingxu.org/software/gsynth/gsynth_examples.html) for more
information.
…On Tue, Feb 23, 2021 at 10:49 AM zdlspace0528 ***@***.***> wrote:
and also there is no Treatment Effect (GSC) line.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#55 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AB2PKGBUAIWEQFXP3P3KE2LTAP2CHANCNFSM4YC5KY2Q>
.
--
Yiqing Xu
Assistant Professor
Department of Political Science
University of California, San Diego
http://yiqingxu.org/
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Haha, maybe 轨迹平衡 is better!
On Mon, Mar 8, 2021 at 10:29 PM zdlspace0528 <notifications@github.com>
wrote:
… Dear Professor Xu,
I have simple question when I learn your paper “Trajectory Balancing: A
General Reweighting Approach to Causal Inference with Time-Series
Cross-Sectional Data.”(2020)
What is the meaning of “Trajectory Balancing” in Chinese?Can I translate
it into “弹道平衡”?
Best regards
Raymond
| |
zdlspace
|
|
***@***.***
|
签名由网易邮箱大师定制
在2021年02月24日 08:40,Yiqing ***@***.***> 写道:
This may be because the package has been updated and the syntax has
changed. Please resort to this page (
http://yiqingxu.org/software/gsynth/gsynth_examples.html) for more
information.
On Tue, Feb 23, 2021 at 10:49 AM zdlspace0528 ***@***.***>
wrote:
> and also there is no Treatment Effect (GSC) line.
>
> —
> You are receiving this because you commented.
> Reply to this email directly, view it on GitHub
> <#55 (comment)>,
or
> unsubscribe
> <
https://github.com/notifications/unsubscribe-auth/AB2PKGBUAIWEQFXP3P3KE2LTAP2CHANCNFSM4YC5KY2Q
>
> .
>
--
Yiqing Xu
Assistant Professor
Department of Political Science
University of California, San Diego
http://yiqingxu.org/
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#55 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AB2PKGH6ZY2EPXQAO244AI3TCW55FANCNFSM4YC5KY2Q>
.
--
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 Xu(2017) with your R package tjbal.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()
How can I solve this problem?
Best regards.
Raymond
| |
zdlspace
|
|
zdlspace@163.com
|
签名由网易邮箱大师定制
在2021年03月9日 14:29,张德亮<zdlspace@163.com> 写道:
Dear Professor Xu,
I have simple question when I learn your paper “Trajectory Balancing: A General Reweighting Approach to Causal Inference with Time-Series Cross-Sectional Data.”(2020)
What is the meaning of “Trajectory Balancing” in Chinese?Can I translate it into “弹道平衡”?
Best regards
Raymond
| |
zdlspace
|
|
zdlspace@163.com
|
签名由网易邮箱大师定制
在2021年02月24日 08:40,Yiqing Xu<notifications@github.com> 写道:
This may be because the package has been updated and the syntax has
changed. Please resort to this page (
http://yiqingxu.org/software/gsynth/gsynth_examples.html) for more
information.
…On Tue, Feb 23, 2021 at 10:49 AM zdlspace0528 ***@***.***> wrote:
and also there is no Treatment Effect (GSC) line.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#55 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AB2PKGBUAIWEQFXP3P3KE2LTAP2CHANCNFSM4YC5KY2Q>
.
--
Yiqing Xu
Assistant Professor
Department of Political Science
University of California, San Diego
http://yiqingxu.org/
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Dear Pro Xu,
I have a question about your Stata command —fect—,When I do Permutation Test and get p value=0?
Does this pass Permutation Test?
Many thanks in advance.
Best
Raymond
| |
zdlspace
|
|
***@***.***
|
签名由网易邮箱大师定制
在2021年03月10日 ***@***.***> 写道:
Dear Pro Xu,
I try to run your example Xu(2017) with your R package tjbal.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()
How can I solve this problem?
Best regards.
Raymond
| |
zdlspace
|
|
***@***.***
|
签名由网易邮箱大师定制
在2021年03月9日 ***@***.***> 写道:
Dear Professor Xu,
I have simple question when I learn your paper “Trajectory Balancing: A General Reweighting Approach to Causal Inference with Time-Series Cross-Sectional Data.”(2020)
What is the meaning of “Trajectory Balancing” in Chinese?Can I translate it into “弹道平衡”?
Best regards
Raymond
| |
zdlspace
|
|
***@***.***
|
签名由网易邮箱大师定制
在2021年02月24日 08:40,Yiqing ***@***.***> 写道:
This may be because the package has been updated and the syntax has
changed. Please resort to this page (
http://yiqingxu.org/software/gsynth/gsynth_examples.html) for more
information.
…On Tue, Feb 23, 2021 at 10:49 AM zdlspace0528 ***@***.***> wrote:
and also there is no Treatment Effect (GSC) line.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#55 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AB2PKGBUAIWEQFXP3P3KE2LTAP2CHANCNFSM4YC5KY2Q>
.
--
Yiqing Xu
Assistant Professor
Department of Political Science
University of California, San Diego
http://yiqingxu.org/
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Thank you, we'll look into it.
Ziyi, could you put this on the fect (Stata)'s issue reporting board? Let's
make our new system work :-)
On Fri, Jun 11, 2021 at 11:48 AM zdlspace0528 ***@***.***>
wrote:
… Dear Pro Xu,
I have a question about your Stata command —fect—,When I do Permutation
Test and get p value=0?
Does this pass Permutation Test?
Many thanks in advance.
Best
Raymond
| |
zdlspace
|
|
***@***.***
|
签名由网易邮箱大师定制
在2021年03月10日 ***@***.***> 写道:
Dear Pro Xu,
I try to run your example Xu(2017) with your R package tjbal.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()
How can I solve this problem?
Best regards.
Raymond
| |
zdlspace
|
|
***@***.***
|
签名由网易邮箱大师定制
在2021年03月9日 ***@***.***> 写道:
Dear Professor Xu,
I have simple question when I learn your paper “Trajectory Balancing: A
General Reweighting Approach to Causal Inference with Time-Series
Cross-Sectional Data.”(2020)
What is the meaning of “Trajectory Balancing” in Chinese?Can I translate
it into “弹道平衡”?
Best regards
Raymond
| |
zdlspace
|
|
***@***.***
|
签名由网易邮箱大师定制
在2021年02月24日 08:40,Yiqing ***@***.***> 写道:
This may be because the package has been updated and the syntax has
changed. Please resort to this page (
http://yiqingxu.org/software/gsynth/gsynth_examples.html) for more
information.
On Tue, Feb 23, 2021 at 10:49 AM zdlspace0528 ***@***.***>
wrote:
> and also there is no Treatment Effect (GSC) line.
>
> —
> You are receiving this because you commented.
> Reply to this email directly, view it on GitHub
> <#55 (comment)>,
or
> unsubscribe
> <
https://github.com/notifications/unsubscribe-auth/AB2PKGBUAIWEQFXP3P3KE2LTAP2CHANCNFSM4YC5KY2Q
>
> .
>
--
Yiqing Xu
Assistant Professor
Department of Political Science
University of California, San Diego
http://yiqingxu.org/
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#55 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AB2PKGEY5E4GKCGNT6GNVT3TSJLAHANCNFSM4YC5KY2Q>
.
--
Yiqing Xu
Assistant Professor
Department of Political Science
University of California, San Diego
http://yiqingxu.org/
|
I run your codes in your paper,I get an error,
###################################
Figure A3: Individual effects
###################################
pdf("sim_iTE.pdf",width=7,height=10)
Ntr<-out$Ntr
Y.tr<-out$Y.tr
Y.ct<-out$Y.ct
eff<-out$eff
true.effect<-matrix(out$eff,30,50)[,1:5]
Error in matrix(panel$eff, T, N) : 找不到对象'panel'
数据中并没有panel,为什么您的代码中有panel 呢
新春快乐!
Raymond
The text was updated successfully, but these errors were encountered: