{
  "_id": "6afefc2a9eaf20cf7c07b7be",
  "Package": "ptetools",
  "Title": "Panel Treatment Effects Tools",
  "Version": "1.0.2",
  "Authors@R": "person(given = \"Brantly\",\nfamily = \"Callaway\",\nrole = c(\"aut\", \"cre\"),\nemail = \"brantly.callaway@uga.edu\")",
  "URL": "https://github.com/bcallaway11/ptetools",
  "BugReports": "https://github.com/bcallaway11/ptetools/issues",
  "Description": "Generic code for estimating treatment effects with panel\ndata.  The idea is to break into separate steps organizing the\ndata, looping over groups and time periods, computing\ngroup-time average treatment effects, and aggregating\ngroup-time average treatment effects.  Often, one is able to\nimplement a new identification/estimation procedure by simply\nreplacing the step on estimating group-time average treatment\neffects.  See several different examples of this approach in\nthe package documentation.",
  "License": "GPL-3",
  "Encoding": "UTF-8",
  "LazyData": "true",
  "Roxygen": "list(markdown = TRUE)",
  "Config/testthat/edition": "3",
  "Config/roxygen2/version": "8.0.0",
  "Repository": "https://bcallaway11.r-universe.dev",
  "Date/Publication": "2026-11-19 13:02:36 UTC",
  "RemoteUrl": "https://github.com/bcallaway11/ptetools",
  "RemoteRef": "HEAD",
  "RemoteSha": "4eaa4602781500252ef27a6f2ff1fa8dbe1c8b2c",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-11-19 13:35:39 UTC",
    "User": "root"
  },
  "Author": "Brantly Callaway [aut, cre]",
  "Maintainer": "Brantly Callaway <brantly.callaway@uga.edu>",
  "_user": "bcallaway11",
  "_type": "src",
  "_file": "ptetools_1.0.2.tar.gz",
  "_fileid": "https://r2.ropensci.org/bc08e2d21f190ef938adc1cea6d8afe30141d5e20459fcfbc6dfb0e2046e2eb6",
  "_filesize": 490884,
  "_sha256": "bc08e2d21f190ef938adc1cea6d8afe30141d5e20459fcfbc6dfb0e2046e2eb6",
  "_expires": "2027-02-27T13:39:52.000Z",
  "_created": "2026-11-19T13:35:39.000Z",
  "_published": "2026-11-19T13:39:54.159Z",
  "_upstream": "https://github.com/bcallaway11/ptetools",
  "_status": "success",
  "_maintainer": {
    "name": "Brantly Callaway",
    "email": "brantly.callaway@uga.edu",
    "login": "bcallaway11",
    "description": "Brantly Callaway, Department of Economics, University of Georgia",
    "uuid": 148795
  },
  "_jobs": [
    {
      "job": 135598210095,
      "time": 163,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "14537045146"
    },
    {
      "job": 135598210027,
      "time": 207,
      "config": "linux-release-x86_64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "14534544530"
    },
    {
      "job": 135598209909,
      "time": 124,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "14536435764"
    },
    {
      "job": 135598209900,
      "time": 131,
      "config": "macos-release-arm64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "14535133681"
    },
    {
      "job": 135596063088,
      "time": 220,
      "config": "source",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "14535312709"
    },
    {
      "job": 135598209864,
      "time": 104,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "14536360737"
    },
    {
      "job": 135598210212,
      "time": 122,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "14535512770"
    },
    {
      "job": 135598210175,
      "time": 115,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "14536515523"
    },
    {
      "job": 135598209775,
      "time": 115,
      "config": "windows-release-x86_64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "14536510223"
    }
  ],
  "_buildurl": "https://github.com/r-universe/bcallaway11/actions/runs/44534413949",
  "_commit": {
    "id": "4eaa4602781500252ef27a6f2ff1fa8dbe1c8b2c",
    "author": "Brantly Callaway <brant.callaway@gmail.com>",
    "committer": "GitHub <noreply@github.com>",
    "message": "Test the dose spline basis fix (#7) and align CI workflows with BMisc (#12)\n\n#7 fixed the boundary knots used for the ATT(d)/ACRT(d) influence\nfunctions but added no test in ptetools. The spline calls now live in a\nsmall internal helper, dose_spline_basis(), so the basis can be tested\ndirectly without depending on contdid. Behavior is unchanged.\n\nThe build-check and revdep-check workflows had never succeeded: the\nREADME was rendered before ptetools was installed, and the revdep job\ncalled revdep_check() with arguments it no longer accepts. All three\nworkflows are now copies of BMisc's, with revdepcheck installed from\nGitHub since it is not on CRAN.\n\nAlso adds a NEWS entry for #7 and drops a finished TODO item.\n\nCo-authored-by: Claude Opus 5.5 <noreply@anthropic.com>",
    "time": 1795093356
  },
  "_distro": "resolute",
  "_host": "GitHub-Actions",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.1.0",
      "role": "Depends"
    },
    {
      "package": "BMisc",
      "version": ">= 1.4.8",
      "role": "Imports"
    },
    {
      "package": "Matrix",
      "role": "Imports"
    },
    {
      "package": "ggplot2",
      "role": "Imports"
    },
    {
      "package": "DRDID",
      "role": "Imports"
    },
    {
      "package": "dplyr",
      "role": "Imports"
    },
    {
      "package": "pbapply",
      "role": "Imports"
    },
    {
      "package": "splines2",
      "role": "Imports"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    },
    {
      "package": "did",
      "role": "Suggests"
    }
  ],
  "_owner": "bcallaway11",
  "_selfowned": true,
  "_usedby": 3,
  "_updates": [
    {
      "week": "2026-21",
      "n": 11
    },
    {
      "week": "2026-22",
      "n": 2
    },
    {
      "week": "2026-30",
      "n": 6
    },
    {
      "week": "2026-31",
      "n": 1
    },
    {
      "week": "2026-32",
      "n": 1
    },
    {
      "week": "2026-46",
      "n": 2
    },
    {
      "week": "2026-47",
      "n": 2
    }
  ],
  "_tags": [
    {
      "name": "v1.0.1",
      "date": "2026-07-20"
    }
  ],
  "_stars": 13,
  "_contributors": [
    {
      "user": "bcallaway11",
      "count": 140,
      "uuid": 148795
    },
    {
      "user": "asadgudzevic94",
      "count": 1,
      "uuid": 127188763
    },
    {
      "user": "hugosantanna",
      "count": 1,
      "uuid": 47804685
    }
  ],
  "_userbio": {
    "uuid": 148795,
    "type": "user",
    "name": "Brantly Callaway",
    "followers": 414,
    "description": "Brantly Callaway, Department of Economics, University of Georgia"
  },
  "_downloads": {
    "count": 947,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/ptetools"
  },
  "_devurl": "https://github.com/bcallaway11/ptetools",
  "_rbuild": "4.6.2",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/manual.pdf",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/ptetools.html",
    "extra/readme.html",
    "extra/readme.md"
  ],
  "_homeurl": "https://github.com/bcallaway11/ptetools",
  "_realowner": "bcallaway11",
  "_cranurl": true,
  "_releases": [
    {
      "version": "1.0.0",
      "date": "2025-02-13"
    },
    {
      "version": "1.0.1",
      "date": "2026-07-20"
    }
  ],
  "_exports": [
    "aggte_obj",
    "attgt_if",
    "attgt_noif",
    "attgt_pte_aggregations",
    "compute.pte",
    "covid_attgt",
    "crit_val_checks",
    "did_attgt",
    "did_rcs_attgt",
    "dose_obj",
    "ggpte",
    "ggpte_cont",
    "group_time_att",
    "gt_data_frame",
    "keep_all_pretreatment_subset",
    "keep_all_untreated_subset",
    "mboot2",
    "overall_weights",
    "panel_empirical_bootstrap",
    "process_att_gt",
    "process_dose_gt",
    "pte",
    "pte_aggte",
    "pte_attgt",
    "pte_default",
    "pte_dose_results",
    "pte_emp_boot",
    "pte_params",
    "pte_qtt",
    "pte_results",
    "qott_pte_aggregations",
    "qtt_empirical_bootstrap",
    "qtt_pte_aggregations",
    "setup_pte",
    "setup_pte_basic",
    "two_by_two_rcs_subset",
    "two_by_two_subset"
  ],
  "_datasets": [
    {
      "name": "covid_data",
      "title": "State-level Covid-19 Data",
      "object": "covid_data",
      "class": [
        "grouped_df",
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "positive",
        "time.period",
        "group",
        "state",
        "totalTestResults",
        "state_id",
        "region",
        "retail_and_recreation_percent_change_from_baseline",
        "current"
      ],
      "rows": 1656,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "aggte_obj",
      "title": "Aggregated Treatment Effects Class",
      "topics": [
        "aggte_obj"
      ]
    },
    {
      "page": "attgt_if",
      "title": "Class for (g,t)-Specific Results with Influence Function",
      "topics": [
        "attgt_if"
      ]
    },
    {
      "page": "attgt_noif",
      "title": "Class for (g,t)-Specific Results without Influence Function",
      "topics": [
        "attgt_noif"
      ]
    },
    {
      "page": "attgt_pte_aggregations",
      "title": "Aggregate Group-Time Average Treatment Effects",
      "topics": [
        "attgt_pte_aggregations"
      ]
    },
    {
      "page": "autoplot.dose_obj",
      "title": "autoplot.dose_obj",
      "topics": [
        "autoplot.dose_obj"
      ]
    },
    {
      "page": "autoplot.pte_emp_boot",
      "title": "autoplot.pte_emp_boot",
      "topics": [
        "autoplot.pte_emp_boot"
      ]
    },
    {
      "page": "autoplot.pte_qtt",
      "title": "autoplot.pte_qtt",
      "topics": [
        "autoplot.pte_qtt"
      ]
    },
    {
      "page": "autoplot.pte_results",
      "title": "autoplot.pte_results",
      "topics": [
        "autoplot.pte_results"
      ]
    },
    {
      "page": "compute.pte",
      "title": "Heavy-Lifting for pte Function",
      "topics": [
        "compute.pte"
      ]
    },
    {
      "page": "covid_attgt",
      "title": "Covid ATT(g,t) Estimator",
      "topics": [
        "covid_attgt"
      ]
    },
    {
      "page": "covid_data",
      "title": "State-level Covid-19 Data",
      "topics": [
        "covid_data"
      ]
    },
    {
      "page": "did_attgt",
      "title": "Difference-in-differences for ATT(g,t)",
      "topics": [
        "did_attgt"
      ]
    },
    {
      "page": "did_rcs_attgt",
      "title": "Repeated Cross Sections Difference-in-Differences for ATT(g,t)",
      "topics": [
        "did_rcs_attgt"
      ]
    },
    {
      "page": "dose_obj",
      "title": "Class for Continuous Treatments",
      "topics": [
        "dose_obj"
      ]
    },
    {
      "page": "ggpte",
      "title": "ggpte",
      "topics": [
        "ggpte"
      ]
    },
    {
      "page": "ggpte_cont",
      "title": "ggpte_cont",
      "topics": [
        "ggpte_cont"
      ]
    },
    {
      "page": "group_time_att",
      "title": "Class for Estimates across Groups and Time",
      "topics": [
        "group_time_att"
      ]
    },
    {
      "page": "gt_data_frame",
      "title": "Convert Data to Usable Format",
      "topics": [
        "gt_data_frame"
      ]
    },
    {
      "page": "keep_all_pretreatment_subset",
      "title": "Keep All Pre-Treatment Subset",
      "topics": [
        "keep_all_pretreatment_subset"
      ]
    },
    {
      "page": "keep_all_untreated_subset",
      "title": "Keep All Untreated Subset",
      "topics": [
        "keep_all_untreated_subset"
      ]
    },
    {
      "page": "mboot2",
      "title": "Multiplier Bootstrap",
      "topics": [
        "mboot2"
      ]
    },
    {
      "page": "overall_weights",
      "title": "Weights for Overall Aggregation",
      "topics": [
        "overall_weights"
      ]
    },
    {
      "page": "panel_empirical_bootstrap",
      "title": "Panel Empirical Bootstrap",
      "topics": [
        "panel_empirical_bootstrap"
      ]
    },
    {
      "page": "plot.dose_obj",
      "title": "plot.dose_obj",
      "topics": [
        "plot.dose_obj"
      ]
    },
    {
      "page": "plot.pte_emp_boot",
      "title": "plot.pte_emp_boot",
      "topics": [
        "plot.pte_emp_boot"
      ]
    },
    {
      "page": "plot.pte_qtt",
      "title": "plot.pte_qtt",
      "topics": [
        "plot.pte_qtt"
      ]
    },
    {
      "page": "plot.pte_results",
      "title": "plot.pte_results",
      "topics": [
        "plot.pte_results"
      ]
    },
    {
      "page": "process_att_gt",
      "title": "Process ATT(g,t) Results",
      "topics": [
        "process_att_gt"
      ]
    },
    {
      "page": "process_dose_gt",
      "title": "Process Results with a Continuous Treatment",
      "topics": [
        "process_dose_gt"
      ]
    },
    {
      "page": "pte",
      "title": "Panel Treatment Effects",
      "topics": [
        "ptetools-package",
        "pte",
        "ptetools"
      ]
    },
    {
      "page": "pte_aggte",
      "title": "Aggregates (g,t)-Specific Results",
      "topics": [
        "pte_aggte"
      ]
    },
    {
      "page": "pte_attgt",
      "title": "General ATT(g,t)",
      "topics": [
        "pte_attgt"
      ]
    },
    {
      "page": "pte_default",
      "title": "Default, General Function for Computing Treatment Effects with Panel Data",
      "topics": [
        "pte_default"
      ]
    },
    {
      "page": "pte_dose_results",
      "title": "Class for Continuous Treatment Results",
      "topics": [
        "pte_dose_results"
      ]
    },
    {
      "page": "pte_emp_boot",
      "title": "Class for Empirical Bootstrap Results",
      "topics": [
        "pte_emp_boot"
      ]
    },
    {
      "page": "pte_params",
      "title": "PTE Parameters Class",
      "topics": [
        "pte_params"
      ]
    },
    {
      "page": "pte_qtt",
      "title": "Class for QTT Curve Results",
      "topics": [
        "pte_qtt"
      ]
    },
    {
      "page": "pte_results",
      "title": "Class for PTE Results",
      "topics": [
        "pte_results"
      ]
    },
    {
      "page": "qott_pte_aggregations",
      "title": "Aggregate Group-Time Quantile of the Treatment Effect",
      "topics": [
        "qott_pte_aggregations"
      ]
    },
    {
      "page": "qtt_empirical_bootstrap",
      "title": "Empirical Bootstrap for QTT Curves",
      "topics": [
        "qtt_empirical_bootstrap"
      ]
    },
    {
      "page": "qtt_pte_aggregations",
      "title": "Aggregate Group-Time Quantile Treatment Effects",
      "topics": [
        "qtt_pte_aggregations"
      ]
    },
    {
      "page": "setup_pte",
      "title": "Generic Setup Function",
      "topics": [
        "setup_pte"
      ]
    },
    {
      "page": "setup_pte_basic",
      "title": "Basic Setup Function",
      "topics": [
        "setup_pte_basic"
      ]
    },
    {
      "page": "two_by_two_rcs_subset",
      "title": "Two Period Two Group Repeated Cross Sections Subset",
      "topics": [
        "two_by_two_rcs_subset"
      ]
    },
    {
      "page": "two_by_two_subset",
      "title": "Two Period Two Group Subset",
      "topics": [
        "two_by_two_subset"
      ]
    }
  ],
  "_pkglogo": "https://github.com/bcallaway11/ptetools/raw/HEAD/man/figures/logo.png",
  "_readme": "https://github.com/bcallaway11/ptetools/raw/HEAD/README.md",
  "_rundeps": [
    "BH",
    "bigmemory",
    "bigmemory.sri",
    "BMisc",
    "cli",
    "cpp11",
    "data.table",
    "dplyr",
    "DRDID",
    "farver",
    "fastglm",
    "Formula",
    "generics",
    "ggplot2",
    "glue",
    "gtable",
    "isoband",
    "labeling",
    "lattice",
    "lifecycle",
    "magrittr",
    "Matrix",
    "pbapply",
    "pillar",
    "pkgconfig",
    "R6",
    "RColorBrewer",
    "Rcpp",
    "RcppArmadillo",
    "RcppEigen",
    "rlang",
    "S7",
    "scales",
    "splines2",
    "tibble",
    "tidyselect",
    "trust",
    "utf8",
    "uuid",
    "vctrs",
    "viridisLite",
    "withr"
  ],
  "_score": 5.913283901760418,
  "_indexed": true,
  "_nocasepkg": "ptetools",
  "_universes": [
    "bcallaway11"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.0.2",
      "date": "2026-11-19T13:38:02.000Z",
      "distro": "resolute",
      "commit": "4eaa4602781500252ef27a6f2ff1fa8dbe1c8b2c",
      "fileid": "https://r2.ropensci.org/c3c1c1bef33a7b00c704c2c505dcc5ae23086c1c77a041e4dda94bbdb42a7596",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bcallaway11/actions/runs/44534413949"
    },
    {
      "r": "4.6.2",
      "os": "linux",
      "version": "1.0.2",
      "date": "2026-11-19T13:38:46.000Z",
      "distro": "resolute",
      "commit": "4eaa4602781500252ef27a6f2ff1fa8dbe1c8b2c",
      "fileid": "https://r2.ropensci.org/3730916d8899fc31207a55952499740b9630902f2c2ddfc3fb8438c34f1a441c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bcallaway11/actions/runs/44534413949"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.0.2",
      "date": "2026-11-19T13:37:33.000Z",
      "commit": "4eaa4602781500252ef27a6f2ff1fa8dbe1c8b2c",
      "fileid": "https://r2.ropensci.org/43fff8b45334f4b35ddb38768df5b45e210ae199aa4ccaba966cc90080e84e87",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bcallaway11/actions/runs/44534413949"
    },
    {
      "r": "4.6.2",
      "os": "mac",
      "version": "1.0.2",
      "date": "2026-11-19T13:37:39.000Z",
      "commit": "4eaa4602781500252ef27a6f2ff1fa8dbe1c8b2c",
      "fileid": "https://r2.ropensci.org/7b959ac74c26cfeebebb2ed49b0963a6de0dc17ee4bca3d1ce820f060732ef8a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bcallaway11/actions/runs/44534413949"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.0.2",
      "date": "2026-11-19T13:37:47.000Z",
      "commit": "4eaa4602781500252ef27a6f2ff1fa8dbe1c8b2c",
      "fileid": "https://r2.ropensci.org/97e23a148c4cc4544538427163cc89a6997fe664530790f607747b893350fdc7",
      "status": "success",
      "buildurl": "https://github.com/r-universe/bcallaway11/actions/runs/44534413949"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.0.2",
      "date": "2026-11-19T13:37:13.000Z",
      "commit": "4eaa4602781500252ef27a6f2ff1fa8dbe1c8b2c",
      "fileid": "https://r2.ropensci.org/03c8f3394f054062c7da3b8d2c32e26d1b77b5ecc641eb776beb02f3644555d2",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bcallaway11/actions/runs/44534413949"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "1.0.2",
      "date": "2026-11-19T13:37:08.000Z",
      "commit": "4eaa4602781500252ef27a6f2ff1fa8dbe1c8b2c",
      "fileid": "https://r2.ropensci.org/2a3c4ae3c111e495623fe35337284265d6285cf85ac9095a89abd32de39b6dbc",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bcallaway11/actions/runs/44534413949"
    },
    {
      "r": "4.6.2",
      "os": "win",
      "version": "1.0.2",
      "date": "2026-11-19T13:37:10.000Z",
      "commit": "4eaa4602781500252ef27a6f2ff1fa8dbe1c8b2c",
      "fileid": "https://r2.ropensci.org/e0e18d0e8bd07d6d626964da8bdacda99011cb7d0213bb60c0c3643bf0eabcd7",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bcallaway11/actions/runs/44534413949"
    }
  ]
}