{
  "_id": "6ad07164e2d863f66295488d",
  "Type": "Package",
  "Package": "optic",
  "Title": "Simulation Tool for Causal Inference Using Longitudinal Data",
  "Version": "1.3.0",
  "Authors@R": "c(\nperson(\"Beth Ann\", \"Griffin\", , \"bethg@rand.org\", role = c(\"aut\", \"cph\"),\ncomment = c(ORCID = \"0000-0002-2391-4601\")),\nperson(\"Pedro\", \"Nascimento de Lima\", , \"plima@rand.org\", role = c(\"cre\", \"aut\"),\ncomment = c(ORCID = \"0000-0001-9057-198X\")),\nperson(\"Max\", \"Griswold\", role = \"aut\",\ncomment = c(ORCID = \"0000-0002-6387-128X\")),\nperson(\"Adam\", \"Scherling\", role = \"aut\"),\nperson(\"Joseph\", \"Pane\", role = \"aut\"),\nperson(\"Geoffrey\", \"Grimm\", role = \"aut\")\n)",
  "Description": "Provides a simulation framework for evaluation of causal\ninference methods using real panel data. See Griffin et al.\n(2021) <doi:10.1007/s10742-022-00284-w> and Griffin et al.\n(2022) <doi:10.1186/s12874-021-01471-y> for a description of\nour methods.",
  "License": "GPL-3",
  "URL": "https://randcorporation.github.io/optic/,\nhttps://github.com/randcorporation/optic",
  "BugReports": "https://github.com/randcorporation/optic/issues",
  "Remotes": [
    "ebenmichael/augsynth",
    "RANDCorporation/causalAR"
  ],
  "Config/Needs/integration": "causalAR",
  "VignetteBuilder": "knitr",
  "Config/testthat/edition": "3",
  "Encoding": "UTF-8",
  "LazyData": "true",
  "RoxygenNote": "7.3.3",
  "Config/pak/sysreqs": "libicu-dev",
  "Repository": "https://randcorporation.r-universe.dev",
  "Date/Publication": "2026-10-12 19:23:35 UTC",
  "RemoteUrl": "https://github.com/randcorporation/optic",
  "RemoteRef": "HEAD",
  "RemoteSha": "971b33f06963e1c9c74d121ebbd1f2c856c7dcf1",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-10-15 06:15:49 UTC",
    "User": "root"
  },
  "Author": "Beth Ann Griffin [aut, cph] (ORCID:\n<https://orcid.org/0000-0002-2391-4601>),\nPedro Nascimento de Lima [cre, aut] (ORCID:\n<https://orcid.org/0000-0001-9057-198X>),\nMax Griswold [aut] (ORCID: <https://orcid.org/0000-0002-6387-128X>),\nAdam Scherling [aut],\nJoseph Pane [aut],\nGeoffrey Grimm [aut]",
  "Maintainer": "Pedro Nascimento de Lima <plima@rand.org>",
  "_user": "randcorporation",
  "_type": "src",
  "_file": "optic_1.3.0.tar.gz",
  "_fileid": "https://r2.ropensci.org/332d8d3716aaa40d0c58383f97dd9585425e9a645ae003e9d4fe55b5dd591fd1",
  "_filesize": 325558,
  "_sha256": "332d8d3716aaa40d0c58383f97dd9585425e9a645ae003e9d4fe55b5dd591fd1",
  "_expires": "2027-01-23T06:23:30.000Z",
  "_created": "2026-10-15T06:15:49.000Z",
  "_published": "2026-10-15T06:23:32.395Z",
  "_buildurl": "https://github.com/r-universe/randcorporation/actions/runs/38323338681",
  "_status": "failure",
  "_host": "GitHub-Actions",
  "_jobs": [
    {
      "job": 116277943245,
      "time": 125,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "FAIL",
      "artifact": ""
    },
    {
      "job": 116277943228,
      "time": 126,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "FAIL",
      "artifact": ""
    },
    {
      "job": 116277943160,
      "time": 127,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "FAIL",
      "artifact": ""
    },
    {
      "job": 116277943204,
      "time": 145,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "FAIL",
      "artifact": ""
    },
    {
      "job": 116276849220,
      "time": 210,
      "config": "source",
      "r": "4.6.1",
      "check": "ERROR",
      "artifact": "11951538566"
    },
    {
      "job": 116277943150,
      "time": 103,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "FAIL",
      "artifact": ""
    },
    {
      "job": 116277943236,
      "time": 220,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "WARNING",
      "artifact": "11952033867"
    },
    {
      "job": 116277943233,
      "time": 140,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "WARNING",
      "artifact": "11951983733"
    },
    {
      "job": 116277943203,
      "time": 167,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "WARNING",
      "artifact": "11952955308"
    }
  ],
  "_upstream": "https://github.com/randcorporation/optic",
  "_commit": {
    "id": "971b33f06963e1c9c74d121ebbd1f2c856c7dcf1",
    "author": "Pedro Nascimento de Lima <plima@rand.org>",
    "committer": "GitHub <noreply@github.com>",
    "message": "Merge pull request #47 from RANDCorporation/feature/rename-autoeffect-to-causalar\n\nUse causalAR instead of autoeffect",
    "time": 1791833015
  },
  "_maintainer": {
    "name": "Pedro Nascimento de Lima",
    "email": "plima@rand.org",
    "login": "pedroliman",
    "orcid": "0000-0001-9057-198X",
    "twitter": "@PedroNdeLima",
    "description": "Engineer at RAND Corporation",
    "uuid": 5301006
  },
  "_distro": "resolute",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.1.0",
      "role": "Depends"
    },
    {
      "package": "did",
      "role": "Imports"
    },
    {
      "package": "dplyr",
      "role": "Imports"
    },
    {
      "package": "future.apply",
      "role": "Imports"
    },
    {
      "package": "lmtest",
      "role": "Imports"
    },
    {
      "package": "magrittr",
      "role": "Imports"
    },
    {
      "package": "MASS",
      "role": "Imports"
    },
    {
      "package": "methods",
      "role": "Imports"
    },
    {
      "package": "progressr",
      "role": "Imports"
    },
    {
      "package": "purrr",
      "role": "Imports"
    },
    {
      "package": "R6",
      "role": "Imports"
    },
    {
      "package": "rlang",
      "role": "Imports"
    },
    {
      "package": "sandwich",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "tidyr",
      "role": "Imports"
    },
    {
      "package": "utils",
      "role": "Imports"
    },
    {
      "package": "augsynth",
      "role": "Suggests"
    },
    {
      "package": "causalAR",
      "role": "Suggests"
    },
    {
      "package": "fixest",
      "role": "Suggests"
    },
    {
      "package": "future",
      "role": "Suggests"
    },
    {
      "package": "ggplot2",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    }
  ],
  "_owner": "randcorporation",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2025-50",
      "n": 4
    },
    {
      "week": "2026-08",
      "n": 6
    },
    {
      "week": "2026-11",
      "n": 4
    },
    {
      "week": "2026-13",
      "n": 4
    },
    {
      "week": "2026-24",
      "n": 3
    },
    {
      "week": "2026-26",
      "n": 5
    },
    {
      "week": "2026-27",
      "n": 2
    },
    {
      "week": "2026-42",
      "n": 2
    }
  ],
  "_tags": [
    {
      "name": "v1.1.0",
      "date": "2025-12-08"
    },
    {
      "name": "v1.1.1",
      "date": "2025-12-08"
    },
    {
      "name": "v1.1.2",
      "date": "2025-12-08"
    },
    {
      "name": "v1.1.3",
      "date": "2025-12-08"
    },
    {
      "name": "v1.2.0",
      "date": "2026-02-19"
    },
    {
      "name": "v1.2.1",
      "date": "2026-03-12"
    },
    {
      "name": "v1.2.2",
      "date": "2026-03-12"
    },
    {
      "name": "v1.2.3",
      "date": "2026-03-26"
    },
    {
      "name": "v1.2.4",
      "date": "2026-03-26"
    },
    {
      "name": "v1.2.5",
      "date": "2026-06-08"
    },
    {
      "name": "v1.2.6",
      "date": "2026-06-22"
    },
    {
      "name": "v1.2.7",
      "date": "2026-06-24"
    },
    {
      "name": "v1.2.8",
      "date": "2026-07-01"
    }
  ],
  "_topics": [
    "causal-inference",
    "diff-in-diff",
    "longitudinal-data",
    "simulation"
  ],
  "_stars": 9,
  "_contributors": [
    {
      "user": "pedroliman",
      "count": 267,
      "uuid": 5301006
    },
    {
      "user": "gegrimm",
      "count": 87,
      "uuid": 10190785
    },
    {
      "user": "aescherling",
      "count": 13,
      "uuid": 6442874
    },
    {
      "user": "maxgriswold",
      "count": 13,
      "uuid": 54287969
    },
    {
      "user": "bagadler",
      "count": 1,
      "uuid": 59017237
    }
  ],
  "_userbio": {
    "uuid": 20526091,
    "type": "organization",
    "name": "RAND",
    "followers": 26
  },
  "_downloads": {
    "count": 232,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/optic"
  },
  "_devurl": "https://github.com/randcorporation/optic",
  "_pkgdown": "https://randcorporation.github.io/optic/",
  "_searchresults": 15,
  "_gitlfs": true,
  "_rbuild": "4.6.1",
  "_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/optic.html",
    "extra/readme.html",
    "extra/readme.md"
  ],
  "_homeurl": "https://github.com/randcorporation/optic",
  "_realowner": "randcorporation",
  "_cranurl": true,
  "_releases": [
    {
      "version": "1.0.0",
      "date": "2023-05-26"
    },
    {
      "version": "1.0.1",
      "date": "2023-08-08"
    }
  ],
  "_exports": [
    "calculate_exposure",
    "dispatch_simulations",
    "exposure_list",
    "model_terms",
    "optic_model",
    "optic_simulation",
    "sim_bias",
    "sim_correct_rejection_rate",
    "sim_correction_factor",
    "sim_coverage",
    "sim_mse",
    "sim_rejection_rate",
    "sim_type_s_error",
    "summarize_simulation"
  ],
  "_datasets": [
    {
      "name": "overdoses",
      "title": "OPTIC Overdoses example data.",
      "object": "overdoses",
      "class": [
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "state",
        "year",
        "population",
        "unemploymentrate",
        "opioid_rx",
        "deaths",
        "crude.rate"
      ],
      "rows": 969,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "calculate_exposure",
      "title": "Calculates the exposure rate applied to each year provided month of policy implementation and number of years to full implementation",
      "topics": [
        "calculate_exposure"
      ]
    },
    {
      "page": "dispatch_simulations",
      "title": "Dispatch Simulations",
      "topics": [
        "dispatch_simulations"
      ]
    },
    {
      "page": "exposure_list",
      "title": "Applies a time-varying treatment effect",
      "topics": [
        "exposure_list"
      ]
    },
    {
      "page": "model_terms",
      "title": "Parse a formula object into its left-hand-side and right-hand-side components",
      "topics": [
        "model_terms"
      ]
    },
    {
      "page": "optic_model",
      "title": "Optic Model",
      "topics": [
        "optic_model"
      ]
    },
    {
      "page": "optic_simulation",
      "title": "Create a configuration object used to run simulations",
      "topics": [
        "optic_simulation"
      ]
    },
    {
      "page": "overdoses",
      "title": "OPTIC Overdoses example data.",
      "topics": [
        "overdoses"
      ]
    },
    {
      "page": "sim_bias",
      "title": "Bias of point estimates",
      "concept": [
        "simulation-performance"
      ],
      "topics": [
        "sim_bias"
      ]
    },
    {
      "page": "sim_correct_rejection_rate",
      "title": "Correct rejection rate",
      "concept": [
        "simulation-performance"
      ],
      "topics": [
        "sim_correct_rejection_rate"
      ]
    },
    {
      "page": "sim_correction_factor",
      "title": "Empirical correction factor",
      "concept": [
        "simulation-performance"
      ],
      "topics": [
        "sim_correction_factor"
      ]
    },
    {
      "page": "sim_coverage",
      "title": "Coverage of confidence intervals",
      "concept": [
        "simulation-performance"
      ],
      "topics": [
        "sim_coverage"
      ]
    },
    {
      "page": "sim_mse",
      "title": "Mean squared error",
      "concept": [
        "simulation-performance"
      ],
      "topics": [
        "sim_mse"
      ]
    },
    {
      "page": "sim_rejection_rate",
      "title": "Rejection rate (Type I error under the null)",
      "concept": [
        "simulation-performance"
      ],
      "topics": [
        "sim_rejection_rate"
      ]
    },
    {
      "page": "sim_type_s_error",
      "title": "Type S (sign) error rate",
      "concept": [
        "simulation-performance"
      ],
      "topics": [
        "sim_type_s_error"
      ]
    },
    {
      "page": "summarize_simulation",
      "title": "Summarize simulation results",
      "concept": [
        "simulation-performance"
      ],
      "topics": [
        "summarize_simulation"
      ]
    }
  ],
  "_pkglogo": "https://github.com/randcorporation/optic/raw/HEAD/man/figures/logo.png",
  "_readme": "https://github.com/randcorporation/optic/raw/HEAD/README.md",
  "_rundeps": [
    "BH",
    "bigmemory",
    "bigmemory.sri",
    "BMisc",
    "cli",
    "codetools",
    "cpp11",
    "data.table",
    "did",
    "digest",
    "dplyr",
    "DRDID",
    "dreamerr",
    "farver",
    "fastglm",
    "Formula",
    "future",
    "future.apply",
    "generics",
    "ggplot2",
    "globals",
    "glue",
    "gtable",
    "isoband",
    "labeling",
    "lattice",
    "lifecycle",
    "listenv",
    "lmtest",
    "magrittr",
    "MASS",
    "Matrix",
    "parallelly",
    "pbapply",
    "pillar",
    "pkgconfig",
    "progressr",
    "purrr",
    "R6",
    "RColorBrewer",
    "Rcpp",
    "RcppArmadillo",
    "RcppEigen",
    "rlang",
    "S7",
    "sandwich",
    "scales",
    "stringi",
    "stringmagic",
    "stringr",
    "tibble",
    "tidyr",
    "tidyselect",
    "trust",
    "utf8",
    "uuid",
    "vctrs",
    "viridisLite",
    "withr",
    "zoo"
  ],
  "_score": 5.334453751150931,
  "_indexed": true,
  "_nocasepkg": "optic",
  "_universes": [
    "randcorporation",
    "pedroliman"
  ],
  "_binaries": [
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "1.3.0",
      "date": "2026-10-12T23:45:18.000Z",
      "distro": "resolute",
      "commit": "971b33f06963e1c9c74d121ebbd1f2c856c7dcf1",
      "fileid": "https://r2.ropensci.org/1586d07a69d9372abed6ca5166c1a42e7f9f13ae452a9210a821d6918bb35e98",
      "status": "failure",
      "buildurl": "https://github.com/r-universe/randcorporation/actions/runs/38323338681"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.3.0",
      "date": "2026-10-15T06:19:09.000Z",
      "commit": "971b33f06963e1c9c74d121ebbd1f2c856c7dcf1",
      "fileid": "https://r2.ropensci.org/b0fbc3cdc3e6d4323ceed6e02a72bd80f3b4bf9954faad20c8574ba37fca6782",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/randcorporation/actions/runs/38323338681"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "1.3.0",
      "date": "2026-10-15T06:17:33.000Z",
      "commit": "971b33f06963e1c9c74d121ebbd1f2c856c7dcf1",
      "fileid": "https://r2.ropensci.org/f621aad8f13ef39f9583638b43747f59825f86014794d5e178c4790d49d66a20",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/randcorporation/actions/runs/38323338681"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "1.3.0",
      "date": "2026-10-15T06:17:49.000Z",
      "commit": "971b33f06963e1c9c74d121ebbd1f2c856c7dcf1",
      "fileid": "https://r2.ropensci.org/44d92c00a1053cb438bfadc5528c11e11fc7bb718fbdc4633078f674b7ff9104",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/randcorporation/actions/runs/38323338681"
    }
  ]
}