{
  "_id": "6a197344acfb0bcc41def67a",
  "Version": "1.0.0.0",
  "Title": "For Streamlining Decision and Economic Evaluation Models using\nGrammar of Modeling",
  "Package": "twig",
  "URL": "https://www.dashlab.ca/, https://hjalal.github.io/twig/,\nhttps://www.dashlab.ca/projects/decision_twig/",
  "BugReports": "https://github.com/hjalal/twig/issues",
  "Maintainer": "Hawre Jalal <hjalal@uottawa.ca>",
  "Description": "Provides tools for building decision and\ncost-effectiveness analysis models. It enables users to write\nthese models concisely, simulate outcomes—including\nprobabilistic analyses—efficiently using optimized vectorized\nprocesses and parallel computing, and produce results. The\npackage employs a Grammar of Modeling approach, inspired by the\nGrammar of Graphics, to streamline model construction. For an\ninteractive graphical user interface, see 'DecisionTwig' at\n<https://www.dashlab.ca/projects/decision_twig/>. Comprehensive\ntutorials and vignettes are available at\n<https://hjalal.github.io/twig/>.",
  "License": "GPL (>= 3)",
  "Encoding": "UTF-8",
  "Roxygen": "list(markdown = TRUE)",
  "RoxygenNote": "7.3.2",
  "VignetteBuilder": "knitr",
  "Authors@R": "person(given = \"Hawre\",\nfamily = \"Jalal\",\nrole = c(\"aut\", \"cre\"),\nemail = \"hjalal@uottawa.ca\",\ncomment = c(ORCID = \"0000-0002-8224-6834\"))",
  "Config/pak/sysreqs": "libicu-dev",
  "Repository": "https://hjalal.r-universe.dev",
  "Date/Publication": "2025-05-29 11:31:35 UTC",
  "RemoteUrl": "https://github.com/hjalal/twig",
  "RemoteRef": "HEAD",
  "RemoteSha": "bfa2d440167ab2e9fdf7c3052c15b79dc71fd265",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-05-29 09:32:27 UTC",
    "User": "root"
  },
  "Author": "Hawre Jalal [aut, cre] (ORCID: <https://orcid.org/0000-0002-8224-6834>)",
  "MD5sum": "61e994d634ed0869b1f52a0b5b562398",
  "_user": "hjalal",
  "_type": "src",
  "_file": "twig_1.0.0.0.tar.gz",
  "_fileid": "10cccc85cee4ce1a8a461c08472c8610bd4dffe85124098c388cdb3c0b013a10",
  "_filesize": 1985777,
  "_sha256": "10cccc85cee4ce1a8a461c08472c8610bd4dffe85124098c388cdb3c0b013a10",
  "_created": "2026-05-29T09:32:27.000Z",
  "_published": "2026-05-29T11:06:44.869Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 78475162907,
      "time": 125,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7287630145"
    },
    {
      "job": 78475162900,
      "time": 131,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7287631701"
    },
    {
      "job": 78475162943,
      "time": 173,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7289204781"
    },
    {
      "job": 78475162903,
      "time": 177,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7289203502"
    },
    {
      "job": 78474682359,
      "time": 183,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7287590973"
    },
    {
      "job": 78475162893,
      "time": 109,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7287625508"
    },
    {
      "job": 78475162906,
      "time": 75,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7287614821"
    },
    {
      "job": 78475163058,
      "time": 78,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7287615976"
    },
    {
      "job": 78475162923,
      "time": 75,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7287615126"
    }
  ],
  "_buildurl": "https://github.com/r-universe/hjalal/actions/runs/26629535385",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/hjalal/twig",
  "_commit": {
    "id": "bfa2d440167ab2e9fdf7c3052c15b79dc71fd265",
    "author": "hjalal <hawrejalal@gmail.com>",
    "committer": "hjalal <hawrejalal@gmail.com>",
    "message": "Merge branch 'dev'\n",
    "time": 1748518295
  },
  "_maintainer": {
    "name": "Hawre Jalal",
    "email": "hjalal@uottawa.ca",
    "login": "hjalal",
    "description": "",
    "uuid": 13283559,
    "orcid": "0000-0002-8224-6834"
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "ggplot2",
      "role": "Imports"
    },
    {
      "package": "parallel",
      "role": "Imports"
    },
    {
      "package": "foreach",
      "role": "Imports"
    },
    {
      "package": "utils",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "reshape2",
      "role": "Imports"
    },
    {
      "package": "abind",
      "role": "Imports"
    },
    {
      "package": "doParallel",
      "role": "Imports"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    }
  ],
  "_owner": "hjalal",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2025-22",
      "n": 1
    }
  ],
  "_tags": [],
  "_stars": 6,
  "_contributors": [
    {
      "user": "hjalal",
      "count": 78,
      "uuid": 13283559
    }
  ],
  "_userbio": {
    "uuid": 13283559,
    "type": "user",
    "name": "hjalal"
  },
  "_downloads": {
    "count": 128,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/twig"
  },
  "_devurl": "https://github.com/hjalal/twig",
  "_pkgdown": "https://hjalal.github.io/twig/",
  "_searchresults": 12,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/readme.html",
    "extra/readme.md",
    "extra/twig.html",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/hjalal/twig",
  "_realowner": "hjalal",
  "_cranurl": true,
  "_releases": [
    {
      "version": "1.0.0.0",
      "date": "2025-01-17"
    }
  ],
  "_exports": [
    "%out%",
    "calculate_icers",
    "decisions",
    "event",
    "payoffs",
    "plot_ceac",
    "prob2rate",
    "rate2prob",
    "run_twig",
    "states",
    "twig"
  ],
  "_help": [
    {
      "page": "grapes-out-grapes",
      "title": "Negation of %in% operator",
      "topics": [
        "%out%"
      ]
    },
    {
      "page": "plus-.twig_class",
      "title": "Define a method for the '+' operator for 'twig' objects",
      "topics": [
        "+.twig_class"
      ]
    },
    {
      "page": "calculate_icers",
      "title": "Calculate Incremental Cost-Effectiveness Ratios (ICERs)",
      "topics": [
        "calculate_icers"
      ]
    },
    {
      "page": "decisions",
      "title": "Add decisions to a twig",
      "topics": [
        "decisions"
      ]
    },
    {
      "page": "event",
      "title": "Add an event layer to a twig object",
      "topics": [
        "event"
      ]
    },
    {
      "page": "payoffs",
      "title": "Add payoffs to a twig object",
      "topics": [
        "payoffs"
      ]
    },
    {
      "page": "plot_ceac",
      "title": "Plot Cost-Effectiveness Acceptability Curve (CEAC)",
      "topics": [
        "plot_ceac"
      ]
    },
    {
      "page": "prob2rate",
      "title": "Convert Probability to Rate",
      "topics": [
        "prob2rate"
      ]
    },
    {
      "page": "rate2prob",
      "title": "Convert Rate to Probability",
      "topics": [
        "rate2prob"
      ]
    },
    {
      "page": "run_twig",
      "title": "Run a twig model",
      "topics": [
        "run_twig"
      ]
    },
    {
      "page": "states",
      "title": "Add Markov states to a twig",
      "topics": [
        "states"
      ]
    },
    {
      "page": "twig",
      "title": "Create a new twig object",
      "topics": [
        "twig"
      ]
    }
  ],
  "_readme": "https://github.com/hjalal/twig/raw/HEAD/README.md",
  "_rundeps": [
    "abind",
    "cli",
    "codetools",
    "cpp11",
    "doParallel",
    "farver",
    "foreach",
    "ggplot2",
    "glue",
    "gtable",
    "isoband",
    "iterators",
    "labeling",
    "lifecycle",
    "magrittr",
    "plyr",
    "R6",
    "RColorBrewer",
    "Rcpp",
    "reshape2",
    "rlang",
    "S7",
    "scales",
    "stringi",
    "stringr",
    "vctrs",
    "viridisLite",
    "withr"
  ],
  "_vignettes": [
    {
      "source": "markov_time_dep.Rmd",
      "filename": "markov_time_dep.html",
      "title": "A Tutorial for Time Dependent Markov Model",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Twig",
        "model definition",
        "DecisionTwig",
        "Probability and Payoff Functions",
        "Probability of recovery (pRecover)",
        "Using Logical Conditions in R",
        "Probability of getting sick (pGetSick)",
        "Probability of progressing (pProgress)",
        "Probability of dying (pDie)",
        "Cost",
        "Utility",
        "Running the twig",
        "Parallelization",
        "Incremental Cost-Effectiveness Ratio (ICER)",
        "Cost-Effectiveness Acceptibility Curve (CEAC)",
        "Summary"
      ],
      "created": "2025-01-08 19:31:58",
      "modified": "2025-01-31 16:29:47",
      "commits": 8
    },
    {
      "source": "decision_tree.Rmd",
      "filename": "decision_tree.html",
      "title": "Decision Tree Herpes Virus Encephalopathy",
      "engine": "knitr::rmarkdown",
      "headings": [
        "twig",
        "twig model definition",
        "DecisionTwig",
        "Model parameters",
        "Functions",
        "Probability of death",
        "Probability of complications",
        "Probability of HVE",
        "Cost function",
        "utility",
        "Running the twig",
        "Incremental Cost-Effectiveness Ratio (ICER)",
        "Summary"
      ],
      "created": "2025-01-08 19:31:58",
      "modified": "2025-01-14 16:55:01",
      "commits": 5
    }
  ],
  "_score": 4.857332496431269,
  "_indexed": true,
  "_nocasepkg": "twig",
  "_universes": [
    "hjalal"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.0.0.0",
      "date": "2026-05-29T09:34:38.000Z",
      "distro": "noble",
      "commit": "bfa2d440167ab2e9fdf7c3052c15b79dc71fd265",
      "fileid": "4be3e361beac8051b6b36d1af9a60a1dcd5aabdf196c8d11dbf36df059a8c72b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/hjalal/actions/runs/26629535385"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "1.0.0.0",
      "date": "2026-05-29T09:34:42.000Z",
      "distro": "noble",
      "commit": "bfa2d440167ab2e9fdf7c3052c15b79dc71fd265",
      "fileid": "3417461aa7a5e72c1468ea2e183fdae96b372e7f8ca7da0d9333e5fd23ebfd02",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/hjalal/actions/runs/26629535385"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.0.0.0",
      "date": "2026-05-29T11:05:48.000Z",
      "commit": "bfa2d440167ab2e9fdf7c3052c15b79dc71fd265",
      "fileid": "41e248f872cbea333659e67036227410641565dae37cf9233830046da9cbbe77",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/hjalal/actions/runs/26629535385"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "1.0.0.0",
      "date": "2026-05-29T11:05:43.000Z",
      "commit": "bfa2d440167ab2e9fdf7c3052c15b79dc71fd265",
      "fileid": "d921c4c98f59d0346b39d3c063c85f886ab0c47178bbeef297d6f06b23d572a2",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/hjalal/actions/runs/26629535385"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.0.0.0",
      "date": "2026-05-29T09:34:38.000Z",
      "commit": "bfa2d440167ab2e9fdf7c3052c15b79dc71fd265",
      "fileid": "5bcd092d97d159cdccebf708d4a7c942a2f4dfd4600b79ff217d2b44a74339a8",
      "status": "success",
      "buildurl": "https://github.com/r-universe/hjalal/actions/runs/26629535385"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.0.0.0",
      "date": "2026-05-29T09:33:43.000Z",
      "commit": "bfa2d440167ab2e9fdf7c3052c15b79dc71fd265",
      "fileid": "ef26cd9a97c27908dac04bc15b1ab342d99a7f29b2d6ef4cabea256bd374e67b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/hjalal/actions/runs/26629535385"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "1.0.0.0",
      "date": "2026-05-29T09:33:46.000Z",
      "commit": "bfa2d440167ab2e9fdf7c3052c15b79dc71fd265",
      "fileid": "27b555f8b0452ee0d4c0d87ca7bb0b68261991a43837e038487cc7a075320115",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/hjalal/actions/runs/26629535385"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "1.0.0.0",
      "date": "2026-05-29T09:33:44.000Z",
      "commit": "bfa2d440167ab2e9fdf7c3052c15b79dc71fd265",
      "fileid": "93a247149c18a020d4ae7a7198ce8e5b8e92738656a4c0b8cbf63f487a3f5966",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/hjalal/actions/runs/26629535385"
    }
  ]
}