{
  "_id": "6ad10eb9a6a61792ed76af84",
  "Package": "bonsaiforest2",
  "Type": "Package",
  "Title": "Flexible Bayesian Shrinkage Models for Subgroup Analysis",
  "Version": "0.1.0",
  "Authors@R": "c(\nperson(\n\"Miriam\", \"Pedrera Gomez\",\nemail = \"miriam.pedrera_gomez@roche.com\",\nrole = c(\"aut\", \"cre\")\n),\nperson(\n\"Isaac\", \"Gravestock\",\nemail = \"isaac.gravestock@bayer.com\",\nrole = \"aut\"\n),\nperson(\n\"Marcel\", \"Wolbers\",\nemail = \"marcel.wolbers@bayer.com\",\nrole = \"aut\"\n)\n)",
  "Description": "An extension of the 'bonsaiforest' package that provides\nincreased flexibility in prior selection and modeling options.\nIt supports four types of endpoints and simplifies the fitting\nand interpretation of Bayesian models for subgroup analysis.\nLeveraging 'brms', it distinguishes between prognostic and\npredictive factors using differential shrinkage priors and\ngenerates publication-ready forest plots.",
  "License": "MIT + file LICENSE",
  "URL": "https://openpharma.github.io/bonsaiforest2/",
  "BugReports": "https://github.com/openpharma/bonsaiforest2/issues",
  "Encoding": "UTF-8",
  "LazyData": "true",
  "Roxygen": "list(markdown = TRUE)",
  "Config/testthat/edition": "3",
  "VignetteBuilder": "knitr",
  "Additional_repositories": "https://stan-dev.r-universe.dev",
  "Config/roxygen2/version": "8.1.0",
  "Config/pak/sysreqs": "cmake make libicu-dev",
  "Repository": "https://openpharma.r-universe.dev",
  "Date/Publication": "2026-10-15 13:03:01 UTC",
  "RemoteUrl": "https://github.com/openpharma/bonsaiforest2",
  "RemoteRef": "HEAD",
  "RemoteSha": "5a6dbf386d371fdda50570c0061b0a0a14dfe47c",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-10-15 17:21:53 UTC",
    "User": "root"
  },
  "Author": "Miriam Pedrera Gomez [aut, cre],\nIsaac Gravestock [aut],\nMarcel Wolbers [aut]",
  "Maintainer": "Miriam Pedrera Gomez <miriam.pedrera_gomez@roche.com>",
  "_user": "openpharma",
  "_type": "src",
  "_file": "bonsaiforest2_0.1.0.tar.gz",
  "_fileid": "https://r2.ropensci.org/9a51527fb344998786cfea5f6bb9d6969bcb3042030e98464fda1d7115dbd3f8",
  "_filesize": 1428407,
  "_sha256": "9a51527fb344998786cfea5f6bb9d6969bcb3042030e98464fda1d7115dbd3f8",
  "_expires": "2027-01-23T17:34:47.000Z",
  "_created": "2026-10-15T17:21:53.000Z",
  "_published": "2026-10-15T17:34:49.145Z",
  "_buildurl": "https://github.com/r-universe/openpharma/actions/runs/38775684001",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_jobs": [
    {
      "job": 116566396771,
      "time": 326,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11993793403"
    },
    {
      "job": 116566396745,
      "time": 319,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11994526859"
    },
    {
      "job": 116566396563,
      "time": 149,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "11995080499"
    },
    {
      "job": 116566396857,
      "time": 204,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11993349661"
    },
    {
      "job": 116562772399,
      "time": 445,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11993094316"
    },
    {
      "job": 116566396541,
      "time": 282,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "11994182297"
    },
    {
      "job": 116566396915,
      "time": 145,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11993363197"
    },
    {
      "job": 116566396773,
      "time": 157,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "11994107088"
    },
    {
      "job": 116566396484,
      "time": 147,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11993144631"
    }
  ],
  "_upstream": "https://github.com/openpharma/bonsaiforest2",
  "_commit": {
    "id": "5a6dbf386d371fdda50570c0061b0a0a14dfe47c",
    "author": "Isaac Gravestock <83659704+gravesti@users.noreply.github.com>",
    "committer": "GitHub <noreply@github.com>",
    "message": "Merge pull request #59 from openpharma/prep-for-cran\n\nPrepare for CRAN release (part 1)",
    "time": 1792069381
  },
  "_maintainer": {
    "name": "Miriam Pedrera Gomez",
    "email": "miriam.pedrera_gomez@roche.com"
  },
  "_distro": "resolute",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.5",
      "role": "Depends"
    },
    {
      "package": "brms",
      "role": "Imports"
    },
    {
      "package": "checkmate",
      "role": "Imports"
    },
    {
      "package": "dplyr",
      "role": "Imports"
    },
    {
      "package": "ggplot2",
      "role": "Imports"
    },
    {
      "package": "posterior",
      "role": "Imports"
    },
    {
      "package": "rlang",
      "role": "Imports"
    },
    {
      "package": "splines2",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "stringr",
      "role": "Imports"
    },
    {
      "package": "survival",
      "role": "Imports"
    },
    {
      "package": "tibble",
      "role": "Imports"
    },
    {
      "package": "BH",
      "role": "Suggests"
    },
    {
      "package": "bookdown",
      "role": "Suggests"
    },
    {
      "package": "cmdstanr",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "RcppEigen",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    }
  ],
  "_owner": "openpharma",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2025-44",
      "n": 10
    },
    {
      "week": "2025-45",
      "n": 5
    },
    {
      "week": "2025-46",
      "n": 2
    },
    {
      "week": "2025-47",
      "n": 9
    },
    {
      "week": "2025-48",
      "n": 1
    },
    {
      "week": "2025-50",
      "n": 1
    },
    {
      "week": "2026-01",
      "n": 2
    },
    {
      "week": "2026-02",
      "n": 1
    },
    {
      "week": "2026-03",
      "n": 2
    },
    {
      "week": "2026-05",
      "n": 8
    },
    {
      "week": "2026-06",
      "n": 1
    },
    {
      "week": "2026-07",
      "n": 1
    },
    {
      "week": "2026-08",
      "n": 5
    },
    {
      "week": "2026-09",
      "n": 1
    },
    {
      "week": "2026-10",
      "n": 8
    },
    {
      "week": "2026-11",
      "n": 3
    },
    {
      "week": "2026-12",
      "n": 1
    },
    {
      "week": "2026-13",
      "n": 1
    },
    {
      "week": "2026-36",
      "n": 2
    },
    {
      "week": "2026-40",
      "n": 1
    },
    {
      "week": "2026-42",
      "n": 1
    }
  ],
  "_tags": [
    {
      "name": "v0.1.0-beta",
      "date": "2026-03-05"
    }
  ],
  "_stars": 0,
  "_contributors": [
    {
      "user": "miriampedrera9",
      "count": 46,
      "uuid": 199894777
    },
    {
      "user": "gravesti",
      "count": 25,
      "uuid": 83659704
    },
    {
      "user": "wolbersm",
      "count": 3,
      "uuid": 90774360
    }
  ],
  "_userbio": {
    "uuid": 8436743,
    "type": "organization",
    "name": "openpharma",
    "followers": 268,
    "description": "Further precompetitive collaboration in life sciences"
  },
  "_downloads": {
    "count": 0,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/bonsaiforest2"
  },
  "_devurl": "https://github.com/openpharma/bonsaiforest2",
  "_pkgdown": "https://openpharma.github.io/bonsaiforest2/",
  "_searchresults": 138,
  "_gitlfs": true,
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/bonsaiforest2.html",
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/manual.pdf",
    "extra/readme.html",
    "extra/readme.md",
    "LICENSE"
  ],
  "_cranurl": false,
  "_exports": [
    "combine_summaries",
    "estimate_subgroup_effects",
    "fit_brms_model",
    "prepare_formula_model",
    "run_brms_analysis",
    "summary_subgroup_effects"
  ],
  "_datasets": [
    {
      "name": "shrink_data",
      "title": "Simulated data for shrinkage analysis",
      "object": "shrink_data",
      "class": [
        "data.frame"
      ],
      "fields": [
        "id",
        "trt",
        "x1",
        "x2",
        "x3",
        "y",
        "response",
        "tt_event",
        "event_yn",
        "fup_duration",
        "count"
      ],
      "rows": 500,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "combine_summaries",
      "title": "Combine Multiple Subgroup Summaries for Comparison Plotting",
      "topics": [
        "combine_summaries"
      ]
    },
    {
      "page": "estimate_subgroup_effects",
      "title": "Estimate Marginal Subgroup Treatment Effects",
      "topics": [
        "estimate_subgroup_effects"
      ]
    },
    {
      "page": "fit_brms_model",
      "title": "Fit a Bayesian Hierarchical Model using brms",
      "topics": [
        "fit_brms_model"
      ]
    },
    {
      "page": "plot.subgroup_summary",
      "title": "Plot Marginal Subgroup Treatment Effects",
      "topics": [
        "plot.subgroup_summary"
      ]
    },
    {
      "page": "prepare_formula_model",
      "title": "Prepare a Multi-Part brms Formula and Corresponding Data",
      "topics": [
        "prepare_formula_model"
      ]
    },
    {
      "page": "run_brms_analysis",
      "title": "Run a Full Bayesian Hierarchical Model Analysis",
      "topics": [
        "run_brms_analysis"
      ]
    },
    {
      "page": "shrink_data",
      "title": "Simulated data for shrinkage analysis",
      "topics": [
        "shrink_data"
      ]
    },
    {
      "page": "summary_subgroup_effects",
      "title": "Create a Summary of Marginal Subgroup Treatment Effects",
      "topics": [
        "summary_subgroup_effects"
      ]
    }
  ],
  "_pkglogo": "https://github.com/openpharma/bonsaiforest2/raw/HEAD/man/figures/logo.png",
  "_readme": "https://github.com/openpharma/bonsaiforest2/raw/HEAD/README.md",
  "_rundeps": [
    "abind",
    "backports",
    "bayesplot",
    "BH",
    "bridgesampling",
    "brms",
    "Brobdingnag",
    "callr",
    "checkmate",
    "cli",
    "coda",
    "codetools",
    "cpp11",
    "desc",
    "digest",
    "distributional",
    "dplyr",
    "farver",
    "future",
    "future.apply",
    "generics",
    "ggdist",
    "ggplot2",
    "ggridges",
    "globals",
    "glue",
    "gridExtra",
    "gtable",
    "inline",
    "isoband",
    "labeling",
    "lattice",
    "lifecycle",
    "listenv",
    "loo",
    "magrittr",
    "Matrix",
    "matrixStats",
    "mgcv",
    "mvtnorm",
    "nleqslv",
    "nlme",
    "numDeriv",
    "otel",
    "parallelly",
    "pillar",
    "pkgbuild",
    "pkgconfig",
    "plyr",
    "posterior",
    "processx",
    "ps",
    "purrr",
    "quadprog",
    "QuickJSR",
    "R6",
    "RColorBrewer",
    "Rcpp",
    "RcppArmadillo",
    "RcppEigen",
    "RcppParallel",
    "reshape2",
    "rlang",
    "rstan",
    "rstantools",
    "S7",
    "scales",
    "splines2",
    "StanHeaders",
    "stringi",
    "stringr",
    "survival",
    "tensorA",
    "tibble",
    "tidyr",
    "tidyselect",
    "utf8",
    "vctrs",
    "viridisLite",
    "withr"
  ],
  "_vignettes": [
    {
      "source": "Advanced_Functionalities.Rmd",
      "filename": "Advanced_Functionalities.html",
      "title": "Advanced Functionalities",
      "author": "Miriam Pedrera Gomez, Isaac Gravestock, and Marcel Wolbers",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Handling Exposure in Count Outcomes with Offsets",
        "Example 1: Count outcome with offset",
        "Customizing Prior Distributions",
        "Model Preparation",
        "Example 2: Using priors directly supported by brms",
        "Example 3: Using the R2-D2 shrinkage prior",
        "Example 4: Custom hierarchical prior (advanced)",
        "Example 5: Coefficient-specific priors",
        "Example 6: Hierarchical priors with shared variance (stanvars)",
        "Stratification for nuisance parameters",
        "Example 7: Fully stratified continuous one-way shrinkage model",
        "Example 8: Stratified one-way survival model",
        "Summary"
      ],
      "created": "2025-11-19 16:00:48",
      "modified": "2026-10-15 13:03:01",
      "commits": 16
    },
    {
      "source": "Quickstart.Rmd",
      "filename": "Quickstart.html",
      "title": "Quickstart",
      "author": "Miriam Pedrera Gomez, Isaac Gravestock, and Marcel Wolbers",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Introduction",
        "The Data",
        "Choice of hyperprior parameters",
        "One-way shrinkage models",
        "One-way model for x1",
        "One-way model for x2",
        "One-way model for x3",
        "Forest plot of results from all one-way models",
        "Global shrinkage model",
        "Model fitting",
        "Summary of subgroup effects",
        "Global Model: Visualization",
        "Comparing Multiple Models in One Plot",
        "References"
      ],
      "created": "2025-11-17 08:37:04",
      "modified": "2026-10-15 13:03:01",
      "commits": 15
    },
    {
      "source": "Statistical_Specifications.Rmd",
      "filename": "Statistical_Specifications.html",
      "title": "Statistical Specifications",
      "author": "Miriam Pedrera Gomez, Isaac Gravestock, and Marcel Wolbers",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Introduction",
        "Model Specification and Fitting Step",
        "Notation",
        "Statistical model",
        "Parameter grouping",
        "Priors distributions for shrunken predictive terms",
        "Normal priors for one-way shrinkage models",
        "Regularized horseshoe priors for global shrinkage models",
        "Model fitting",
        "Standardization Step (G-Computation)",
        "Comparison of One-way vs Global Shrinkage Models",
        "References"
      ],
      "created": "2025-11-17 08:37:04",
      "modified": "2026-09-04 12:08:27",
      "commits": 15
    }
  ],
  "_score": 5.939219635854818,
  "_indexed": true,
  "_nocasepkg": "bonsaiforest2",
  "_universes": [
    "openpharma"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.0",
      "date": "2026-10-15T17:26:48.000Z",
      "distro": "resolute",
      "commit": "5a6dbf386d371fdda50570c0061b0a0a14dfe47c",
      "fileid": "https://r2.ropensci.org/a4c396dbce75e202837f1dd99b774f40a1f7894f9aadb4180036662ed7ae44a3",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/openpharma/actions/runs/38775684001"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.1.0",
      "date": "2026-10-15T17:26:49.000Z",
      "distro": "resolute",
      "commit": "5a6dbf386d371fdda50570c0061b0a0a14dfe47c",
      "fileid": "https://r2.ropensci.org/0c2387e423a8cf4ffc507df6ef9eaaccd828d0588524f6a860615e736baedae6",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/openpharma/actions/runs/38775684001"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.1.0",
      "date": "2026-10-15T17:29:51.000Z",
      "commit": "5a6dbf386d371fdda50570c0061b0a0a14dfe47c",
      "fileid": "https://r2.ropensci.org/ae701eb7387eee1462c9161f0027e4b1ebb4f862d3ce9423bdbc6334377acef2",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/openpharma/actions/runs/38775684001"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.1.0",
      "date": "2026-10-15T17:33:09.000Z",
      "commit": "5a6dbf386d371fdda50570c0061b0a0a14dfe47c",
      "fileid": "https://r2.ropensci.org/38c68284add9dc7e6a77931d912a815f4903413f34fbd19b3581d9044676dd29",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/openpharma/actions/runs/38775684001"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.1.0",
      "date": "2026-10-15T17:27:05.000Z",
      "commit": "5a6dbf386d371fdda50570c0061b0a0a14dfe47c",
      "fileid": "https://r2.ropensci.org/ab926e46217019866cd2571f3c9fcbb2c2d3b7f749b1320591d881979f71b5b6",
      "status": "success",
      "buildurl": "https://github.com/r-universe/openpharma/actions/runs/38775684001"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.1.0",
      "date": "2026-10-15T17:23:55.000Z",
      "commit": "5a6dbf386d371fdda50570c0061b0a0a14dfe47c",
      "fileid": "https://r2.ropensci.org/a7a3165f7ab53bf71031273fddde84a6f6d80b4ce8cd4309f1c12c7a69137bf6",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/openpharma/actions/runs/38775684001"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.1.0",
      "date": "2026-10-15T17:23:57.000Z",
      "commit": "5a6dbf386d371fdda50570c0061b0a0a14dfe47c",
      "fileid": "https://r2.ropensci.org/6b89a3fabf384eb59355e6982fc91b85532d43f3b8dcfbab6f3d3b7a9f86b25f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/openpharma/actions/runs/38775684001"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.1.0",
      "date": "2026-10-15T17:23:44.000Z",
      "commit": "5a6dbf386d371fdda50570c0061b0a0a14dfe47c",
      "fileid": "https://r2.ropensci.org/bd432fbdeff818c42bddce289ff0f342304dfc3e68c70bba653ab17e77729109",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/openpharma/actions/runs/38775684001"
    }
  ]
}