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

csabounds package gives this error #1

Open
1144heshani opened this issue Dec 1, 2022 · 0 comments
Open

csabounds package gives this error #1

1144heshani opened this issue Dec 1, 2022 · 0 comments

Comments

@1144heshani
Copy link

When doing the example that is given in the website (https://bcallaway11.github.io/csabounds/), we are getting some errors. The errors are explained below. I have provided a screenshot as well. Thank you.

# install.packages("devtools")
devtools::install_github("bcallaway11/csabounds")
library(csabounds)
data(displacements)
delt.seq <- seq(-4,4,length.out=50)
y.seq <- seq(6.5,13,length.out=50)
cc <- qte::CiC(learn ~ treat,
               t=2011, tmin1=2007, tname="year",
               idname="id", panel=TRUE, data=displacements,
               probs=seq(.05,.95,.01),se=FALSE)
cc$F.treated.tmin2 <- ecdf(subset(displacements, year==2003 & treat==1)$learn)
cc$F.treated.tmin1 <- ecdf(subset(displacements, year==2007 & treat==1)$learn)

Error 1: could not find function "Y0tmethod"

cb <- csabounds::csa.bounds(learn ~ treat, 2011, 2007, 2003, "year", "id",
                 displacements, delt.seq, y.seq, cc, method="level", cl=1)
cb
ggCSABounds(cb, wdbounds=TRUE)

Error in Y0tmethod(formla = formla, xformla = xformla, t = t, tmin1 = tmin1, :
could not find function "Y0tmethod"

Error 2: unused argument (method = "level")

Removed "Y0tmethod=cc" and used "Y0tmethod=qte::CiC" because of Error 1.

cb <- csabounds::csa.bounds(learn ~ treat, 2011, 2007, 2003, "year", "id",
                 displacements, delt.seq, y.seq, Y0tmethod=qte::CiC, 
                 method="level", cl=1)
cb
ggCSABounds(cb, wdbounds=TRUE)

Error in Y0tmethod(formla = formla, xformla = xformla, t = t, tmin1 = tmin1, :
unused argument (method = "level")

Error 3: object 'y0t' not found

Removed the unused argument; method = "level" because of Error 2.

cb <- csabounds::csa.bounds(learn ~ treat, 2011, 2007, 2003, "year", "id",
                 displacements, delt.seq, y.seq, Y0tmethod=qte::CiC, cl=1)
cb
ggCSABounds(cb, wdbounds=TRUE)

object 'y0t' not found

Screen Shot 2022-12-01 at 5 44 02 pm (3)

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

1 participant