Skip to content
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 when r* = 0 #1

Open
fickse opened this issue Nov 11, 2019 · 1 comment
Open

Error when r* = 0 #1

fickse opened this issue Nov 11, 2019 · 1 comment

Comments

@fickse
Copy link

fickse commented Nov 11, 2019

In gsynth, when r is 0 (either by user selection or CV) I get the following error:

Error in `rownames<-`(`*tmp*`, value = iname[which(out$tr == 1)]) :
  attempt to set 'rownames' on an object with no dimensions

The error comes from the following lines (800-803) in gsynth.R:

if (!is.null(out$alpha.tr)) {
        rownames(out$alpha.tr) <- iname[which(out$tr == 1)]
        colnames(out$alpha.tr) <- ""
    }

To reproduce:

data(gsynth)
out <- gsynth(Y ~ D + X1 + X2, data = simdata, index = c("id","time"), force = "two-way", CV = FALSE, r = 0, se = TRUE, inference = "parametric", nboots = 1000, parallel = FALSE)
@gaborcsardi
Copy link

Hi, this is a read only mirror of CRAN, please see the package authors in the DESCRIPTION file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants