Skip to content

panel.qte fails when data is a tbl_df #3

@lrose1

Description

@lrose1

Perhaps this is not an issue, but this took me a long time to figure out.

#load the package
library(qte)

#load the data
data(lalonde)
lalonde_tbl <- as_tibble(lalonde.psid.panel)

#Run the panel.qtet method on the observational data with no covariates
pq1 <- panel.qtet(re ~ treat, t=1978, tmin1=1975, tmin2=1974, tname="year",
                  x=NULL, data=lalonde_tbl, idname="id", se=FALSE,
                  probs=seq(0.1, 0.9, 0.1))

Error in $<-.data.frame(tmp, "w", value = 1) : replacement has 1 row, data has 0 In addition: Warning message: In panelize.data(data, idname, tname, t, tmin1, tmin2) : dropping 8025 observations that are not in period: 1978, 1975, 1974...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions