{
  "_id": "6a1f03b2b401979e7341b5ce",
  "Package": "apm",
  "Title": "Averaged Prediction Models",
  "Version": "0.1.1",
  "Authors@R": "c(person(\"Thomas\", \"Leavitt\", email = \"thomas.leavitt@baruch.cuny.edu\", role = c(\"aut\", \"cre\"),\ncomment = c(ORCID = \"0000-0002-3668-6409\")),\nperson(\"Laura\", \"Hatfield\", role = c(\"aut\"),\ncomment = c(ORCID = \"0000-0003-0366-3929\")),\nperson(\"Noah\", \"Greifer\", email = \"ngreifer@iq.harvard.edu\", role = c(\"aut\"),\ncomment = c(ORCID = \"0000-0003-3067-7154\")))",
  "Description": "In panel data settings, specifies set of candidate models,\nfits them to data from pre-treatment validation periods, and\nselects model as average over candidate models, weighting each\nby posterior probability of being most robust given its\ndifferential average prediction errors in pre-treatment\nvalidation periods. Subsequent estimation and inference of\ncausal effect's bounds accounts for both model and sampling\nuncertainty, and calculates the robustness changepoint value at\nwhich bounds go from excluding to including 0. The package also\nincludes a range of diagnostic plots, such as those\nillustrating models' differential average prediction errors and\nthe posterior distribution of which model is most robust.",
  "License": "GPL (>= 2)",
  "Encoding": "UTF-8",
  "Roxygen": "list(markdown = TRUE)",
  "RoxygenNote": "7.3.2",
  "LazyData": "true",
  "VignetteBuilder": "knitr",
  "URL": "https://github.com/tl2624/apm/, https://tl2624.github.io/apm/",
  "BugReports": "https://github.com/tl2624/apm/issues",
  "Repository": "https://tl2624.r-universe.dev",
  "Date/Publication": "2025-05-22 18:42:00 UTC",
  "RemoteUrl": "https://github.com/tl2624/apm",
  "RemoteRef": "HEAD",
  "RemoteSha": "de1f2027a2edae4346fb91a009e6c7cf5cb316bf",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-05-18 07:58:44 UTC",
    "User": "root"
  },
  "Author": "Thomas Leavitt [aut, cre] (ORCID:\n<https://orcid.org/0000-0002-3668-6409>),\nLaura Hatfield [aut] (ORCID: <https://orcid.org/0000-0003-0366-3929>),\nNoah Greifer [aut] (ORCID: <https://orcid.org/0000-0003-3067-7154>)",
  "Maintainer": "Thomas Leavitt <thomas.leavitt@baruch.cuny.edu>",
  "MD5sum": "5fe21d712e915e023e6dc13e16c65636",
  "_user": "tl2624",
  "_type": "src",
  "_file": "apm_0.1.1.tar.gz",
  "_fileid": "24c30ea87277842e266517c37aae688d7b0ab2759c61547ffd8bff18e66d8553",
  "_filesize": 939109,
  "_sha256": "24c30ea87277842e266517c37aae688d7b0ab2759c61547ffd8bff18e66d8553",
  "_created": "2026-05-18T07:58:44.000Z",
  "_published": "2026-06-02T16:24:18.081Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 79119676507,
      "time": 138,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7052418797"
    },
    {
      "job": 79119676692,
      "time": 131,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7052416883"
    },
    {
      "job": 79119677219,
      "time": 142,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7052414071"
    },
    {
      "job": 79119676737,
      "time": 183,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7052422121"
    },
    {
      "job": 79119675795,
      "time": 202,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7052375653"
    },
    {
      "job": 79119675671,
      "time": 113,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7363647629"
    },
    {
      "job": 79119676840,
      "time": 117,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7052412320"
    },
    {
      "job": 79119677403,
      "time": 83,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7052401788"
    },
    {
      "job": 79119677179,
      "time": 93,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7052404835"
    }
  ],
  "_buildurl": "https://github.com/r-universe/tl2624/actions/runs/26020786925",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/tl2624/apm",
  "_commit": {
    "id": "de1f2027a2edae4346fb91a009e6c7cf5cb316bf",
    "author": "Tom Leavitt <tl2624@users.noreply.github.com>",
    "committer": "GitHub <noreply@github.com>",
    "message": "Merge pull request #3 from ngreifer/main\n\nBug fix, prep for submission for 0.1.1",
    "time": 1747939320
  },
  "_maintainer": {
    "name": "Thomas Leavitt",
    "email": "thomas.leavitt@baruch.cuny.edu",
    "login": "tl2624",
    "description": "Assistant Professor at the Marxe School of Public and International Affairs, Baruch College, City University of New York (CUNY)",
    "uuid": 9632534,
    "orcid": "0000-0002-3668-6409"
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.5.0",
      "role": "Depends"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "ggplot2",
      "version": ">= 3.5.1",
      "role": "Imports"
    },
    {
      "package": "ggh4x",
      "version": ">= 0.2.8",
      "role": "Imports"
    },
    {
      "package": "ggrepel",
      "version": ">= 0.9.6",
      "role": "Imports"
    },
    {
      "package": "MASS",
      "role": "Imports"
    },
    {
      "package": "sandwich",
      "role": "Imports"
    },
    {
      "package": "pbapply",
      "version": ">= 1.7-2",
      "role": "Imports"
    },
    {
      "package": "fwb",
      "version": ">= 0.3.0",
      "role": "Imports"
    },
    {
      "package": "chk",
      "version": ">= 0.10.0",
      "role": "Imports"
    },
    {
      "package": "parallel",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    }
  ],
  "_owner": "tl2624",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2025-21",
      "n": 2
    }
  ],
  "_tags": [],
  "_stars": 2,
  "_contributors": [
    {
      "user": "ngreifer",
      "count": 32,
      "uuid": 20465600
    },
    {
      "user": "tl2624",
      "count": 9,
      "uuid": 9632534
    }
  ],
  "_userbio": {
    "uuid": 9632534,
    "type": "user",
    "name": "Thomas Leavitt",
    "description": "Assistant Professor at the Marxe School of Public and International Affairs, Baruch College, City University of New York (CUNY)"
  },
  "_downloads": {
    "count": 574,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/apm"
  },
  "_devurl": "https://github.com/tl2624/apm",
  "_pkgdown": "https://tl2624.github.io/apm/",
  "_searchresults": 34,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/apm.html",
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/tl2624/apm",
  "_realowner": "tl2624",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.1.0",
      "date": "2025-03-10"
    },
    {
      "version": "0.1.1",
      "date": "2025-05-27"
    }
  ],
  "_exports": [
    "apm_est",
    "apm_mod",
    "apm_pre",
    "robustness_bound"
  ],
  "_datasets": [
    {
      "name": "ptpdata",
      "title": "Dataset on Annual Homicide Rates",
      "object": "ptpdata",
      "class": [
        "data.frame"
      ],
      "fields": [
        "state",
        "year",
        "deaths",
        "crude_rate",
        "age_adj_rate",
        "group",
        "treat"
      ],
      "rows": 135,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "apm_est",
      "title": "Estimate ATTs from models fits",
      "topics": [
        "apm_est",
        "plot.apm_est",
        "summary.apm_est"
      ]
    },
    {
      "page": "apm_mod",
      "title": "Generate models used to fit outcomes",
      "topics": [
        "apm_mod"
      ]
    },
    {
      "page": "apm_pre",
      "title": "Fit validation models to pre-treatment data",
      "topics": [
        "apm_pre",
        "summary.apm_pre_fits"
      ]
    },
    {
      "page": "plot.apm_pre_fits",
      "title": "Plot outputs of 'apm_pre()'",
      "topics": [
        "plot.apm_pre_fits"
      ]
    },
    {
      "page": "ptpdata",
      "title": "Dataset on Annual Homicide Rates",
      "topics": [
        "ptpdata"
      ]
    },
    {
      "page": "robustness_bound",
      "title": "Compute the robustness changepoint",
      "topics": [
        "robustness_bound"
      ]
    }
  ],
  "_readme": "https://github.com/tl2624/apm/raw/HEAD/README.md",
  "_rundeps": [
    "chk",
    "cli",
    "cpp11",
    "farver",
    "fwb",
    "generics",
    "ggh4x",
    "ggplot2",
    "ggrepel",
    "glue",
    "gtable",
    "isoband",
    "labeling",
    "lattice",
    "lifecycle",
    "MASS",
    "pbapply",
    "R6",
    "RColorBrewer",
    "Rcpp",
    "rlang",
    "S7",
    "sandwich",
    "scales",
    "vctrs",
    "viridisLite",
    "withr",
    "zoo"
  ],
  "_vignettes": [
    {
      "source": "apm.Rmd",
      "filename": "apm.html",
      "title": "Introduction to the apm Package",
      "engine": "knitr::rmarkdown_notangle",
      "headings": [
        "Introduction",
        "Methodology Overview",
        "Example: Estimating the Effect of Missouri's Gun Policy Change",
        "Load Example Data",
        "Define Candidate Models",
        "Fit Candidate Models to Pre-Treatment Data",
        "Estimation and Inference",
        "Sensitivity Analysis",
        "Interpretation of Results",
        "Conclusion",
        "References"
      ],
      "created": "2025-02-26 19:58:21",
      "modified": "2025-05-22 18:42:00",
      "commits": 6
    }
  ],
  "_score": 4.531478917042255,
  "_indexed": true,
  "_nocasepkg": "apm",
  "_universes": [
    "tl2624"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.1",
      "date": "2026-05-18T08:00:54.000Z",
      "distro": "noble",
      "commit": "de1f2027a2edae4346fb91a009e6c7cf5cb316bf",
      "fileid": "89f27f769b81bb985eb3f003adf0292c40d5f68c567d41d4e723d6b72fa70b2a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/tl2624/actions/runs/26020786925"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.1.1",
      "date": "2026-05-18T08:00:49.000Z",
      "distro": "noble",
      "commit": "de1f2027a2edae4346fb91a009e6c7cf5cb316bf",
      "fileid": "dfec0e3a284876955132654eace4cba5ce8f560823653a3f52d511994bb4b891",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/tl2624/actions/runs/26020786925"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.1.1",
      "date": "2026-05-18T08:00:51.000Z",
      "commit": "de1f2027a2edae4346fb91a009e6c7cf5cb316bf",
      "fileid": "9d13c16cc81298d495b981ec0a39c000aed0d45e9163c6a5b125d225bfdb716f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/tl2624/actions/runs/26020786925"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.1.1",
      "date": "2026-05-18T08:01:05.000Z",
      "commit": "de1f2027a2edae4346fb91a009e6c7cf5cb316bf",
      "fileid": "402fc37da391646c9621e61df734b2162728d91b53df06ab768d5b895d364c7f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/tl2624/actions/runs/26020786925"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.1.1",
      "date": "2026-05-18T08:00:28.000Z",
      "commit": "de1f2027a2edae4346fb91a009e6c7cf5cb316bf",
      "fileid": "3ed3ed88d5eece27d4119696ad2fedc36ea72f9ba84648040b2631104d0c1896",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/tl2624/actions/runs/26020786925"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.1.1",
      "date": "2026-05-18T07:59:56.000Z",
      "commit": "de1f2027a2edae4346fb91a009e6c7cf5cb316bf",
      "fileid": "c58959313f5a2b8e5eb276d06707b07a274a2e141e6244838f0a8d8c4c9ea69d",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/tl2624/actions/runs/26020786925"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.1.1",
      "date": "2026-05-18T08:00:01.000Z",
      "commit": "de1f2027a2edae4346fb91a009e6c7cf5cb316bf",
      "fileid": "42861b648821e2812d22243397f275db9167dd4ab44cc1d269022b79d7aa57d7",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/tl2624/actions/runs/26020786925"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.1.1",
      "date": "2026-06-02T16:23:50.000Z",
      "commit": "de1f2027a2edae4346fb91a009e6c7cf5cb316bf",
      "fileid": "e9bdbb7fb48e004afacc18a4b05613b3aa3d60362685d9aa2fef32e6881c7873",
      "status": "success",
      "buildurl": "https://github.com/r-universe/tl2624/actions/runs/26020786925"
    }
  ]
}