{
  "_id": "6a29003a732311cd87590415",
  "Type": "Package",
  "Package": "optic",
  "Title": "Simulation Tool for Causal Inference Using Longitudinal Data",
  "Version": "1.2.5",
  "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/autoeffect"
  ],
  "Config/Needs/integration": "autoeffect",
  "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-06-08 14:19:20 UTC",
  "RemoteUrl": "https://github.com/randcorporation/optic",
  "RemoteRef": "HEAD",
  "RemoteSha": "e24a0a20f7f6a62c1d78d982791bf3f1a501cd56",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-06-10 06:04:03 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>",
  "MD5sum": "f8ede4326ebf2d3cb2c565745e5e6439",
  "_user": "randcorporation",
  "_type": "src",
  "_file": "optic_1.2.5.tar.gz",
  "_fileid": "0c0813f2e562432044cda7f62b1fcb8be7cdfe5ffe342c15a768174ca85ccad0",
  "_filesize": 322494,
  "_sha256": "0c0813f2e562432044cda7f62b1fcb8be7cdfe5ffe342c15a768174ca85ccad0",
  "_created": "2026-06-10T06:04:03.000Z",
  "_published": "2026-06-10T06:12:10.768Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 80492568589,
      "time": 151,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "FAIL",
      "artifact": ""
    },
    {
      "job": 80492568621,
      "time": 144,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "FAIL",
      "artifact": ""
    },
    {
      "job": 80492568614,
      "time": 148,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "FAIL",
      "artifact": ""
    },
    {
      "job": 80492568617,
      "time": 141,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "FAIL",
      "artifact": ""
    },
    {
      "job": 80492015710,
      "time": 256,
      "config": "source",
      "r": "4.6.0",
      "check": "ERROR",
      "artifact": "7527763352"
    },
    {
      "job": 80492568583,
      "time": 133,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "FAIL",
      "artifact": ""
    },
    {
      "job": 80492568628,
      "time": 151,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "WARNING",
      "artifact": "7527800292"
    },
    {
      "job": 80492568622,
      "time": 170,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "WARNING",
      "artifact": "7527804923"
    },
    {
      "job": 80492568630,
      "time": 448,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "WARNING",
      "artifact": "7527870850"
    }
  ],
  "_buildurl": "https://github.com/r-universe/randcorporation/actions/runs/27147611507",
  "_status": "failure",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/randcorporation/optic",
  "_commit": {
    "id": "e24a0a20f7f6a62c1d78d982791bf3f1a501cd56",
    "author": "Pedro Nascimento de Lima <plima@rand.org>",
    "committer": "Pedro Nascimento de Lima <plima@rand.org>",
    "message": "Mark v1.2.5 release in NEWS.md\n",
    "time": 1780928360
  },
  "_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
  },
  "_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": "autoeffect",
      "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-30",
      "n": 1
    },
    {
      "week": "2025-50",
      "n": 4
    },
    {
      "week": "2026-08",
      "n": 6
    },
    {
      "week": "2026-11",
      "n": 4
    },
    {
      "week": "2026-13",
      "n": 4
    },
    {
      "week": "2026-24",
      "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"
    }
  ],
  "_topics": [
    "causal-inference",
    "diff-in-diff",
    "longitudinal-data",
    "simulation"
  ],
  "_stars": 9,
  "_contributors": [
    {
      "user": "pedroliman",
      "count": 243,
      "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"
  },
  "_downloads": {
    "count": 151,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/optic"
  },
  "_devurl": "https://github.com/randcorporation/optic",
  "_pkgdown": "https://randcorporation.github.io/optic/",
  "_searchresults": 14,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/optic.html",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_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"
      ]
    }
  ],
  "_readme": "https://github.com/randcorporation/optic/raw/HEAD/README.md",
  "_rundeps": [
    "BH",
    "bigmemory",
    "bigmemory.sri",
    "BMisc",
    "caret",
    "class",
    "cli",
    "clock",
    "codetools",
    "cpp11",
    "data.table",
    "diagram",
    "did",
    "digest",
    "dplyr",
    "DRDID",
    "dreamerr",
    "e1071",
    "farver",
    "fastglm",
    "foreach",
    "Formula",
    "future",
    "future.apply",
    "generics",
    "ggplot2",
    "globals",
    "glue",
    "gower",
    "gtable",
    "hardhat",
    "ipred",
    "isoband",
    "iterators",
    "KernSmooth",
    "labeling",
    "lattice",
    "lava",
    "lifecycle",
    "listenv",
    "lmtest",
    "lubridate",
    "magrittr",
    "MASS",
    "Matrix",
    "ModelMetrics",
    "nlme",
    "nnet",
    "numDeriv",
    "parallelly",
    "pbapply",
    "pillar",
    "pkgconfig",
    "plyr",
    "pROC",
    "prodlim",
    "progressr",
    "proxy",
    "purrr",
    "R6",
    "RColorBrewer",
    "Rcpp",
    "RcppArmadillo",
    "RcppEigen",
    "recipes",
    "reshape2",
    "rlang",
    "rpart",
    "S7",
    "sandwich",
    "scales",
    "shape",
    "sparsevctrs",
    "SQUAREM",
    "stringi",
    "stringmagic",
    "stringr",
    "survival",
    "tibble",
    "tidyr",
    "tidyselect",
    "timechange",
    "timeDate",
    "trust",
    "tzdb",
    "utf8",
    "uuid",
    "vctrs",
    "viridisLite",
    "withr",
    "zoo"
  ],
  "_score": 5.179551791165188,
  "_indexed": true,
  "_nocasepkg": "optic",
  "_universes": [
    "randcorporation",
    "pedroliman"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.2.4",
      "date": "2026-05-25T07:14:28.000Z",
      "distro": "noble",
      "commit": "e08d2abc81421107b01696c2969ccbd6fc5da6b0",
      "fileid": "f1cc2153f79101189d0021be02475ef073d38c06d401c46a2fd7cc9911fe9fca",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/randcorporation/actions/runs/26388118039"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.2.4",
      "date": "2026-05-25T07:13:16.000Z",
      "commit": "e08d2abc81421107b01696c2969ccbd6fc5da6b0",
      "fileid": "1b65ead7e2280e5211e5dbae748e075bcf6f969b06fd1ca213df6958b637b833",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/randcorporation/actions/runs/26388118039"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "1.2.4",
      "date": "2026-05-25T07:13:10.000Z",
      "commit": "e08d2abc81421107b01696c2969ccbd6fc5da6b0",
      "fileid": "edaf345c5d82ccea81010c7ff95e0749ed6e08d1352424f9d67440a859c4583c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/randcorporation/actions/runs/26388118039"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.2.4",
      "date": "2026-05-25T07:13:53.000Z",
      "commit": "e08d2abc81421107b01696c2969ccbd6fc5da6b0",
      "fileid": "dfcc7226699cb00cf381fc362420ac50fb77a1fab72bb43ab0d6190a54737427",
      "status": "success",
      "buildurl": "https://github.com/r-universe/randcorporation/actions/runs/26388118039"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "1.2.5",
      "date": "2026-06-08T15:21:01.000Z",
      "distro": "noble",
      "commit": "e24a0a20f7f6a62c1d78d982791bf3f1a501cd56",
      "fileid": "d4b55020a53997dcc5305c5a1d7e6ce46f41ace4815def2876823373770d7a2c",
      "status": "failure",
      "buildurl": "https://github.com/r-universe/randcorporation/actions/runs/27147611507"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.2.5",
      "date": "2026-06-10T06:05:45.000Z",
      "commit": "e24a0a20f7f6a62c1d78d982791bf3f1a501cd56",
      "fileid": "429fce7706ed87d40528d22512834ee6fcb7466874b1fde88cb7bded25c167e1",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/randcorporation/actions/runs/27147611507"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "1.2.5",
      "date": "2026-06-10T06:05:59.000Z",
      "commit": "e24a0a20f7f6a62c1d78d982791bf3f1a501cd56",
      "fileid": "8ea737a6cac187d231b4a96700ec5b2a26b79972e0c1abdec913f751d5d2997f",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/randcorporation/actions/runs/27147611507"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "1.2.5",
      "date": "2026-06-10T06:10:53.000Z",
      "commit": "e24a0a20f7f6a62c1d78d982791bf3f1a501cd56",
      "fileid": "30d7cbc018450e3140f962e6abfb7d7030be4ec32e523dc041df5562b4b4c74a",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/randcorporation/actions/runs/27147611507"
    }
  ]
}