{
  "_id": "6abba6e899f7aa8c6aa478b1",
  "Package": "FlexReg",
  "Title": "Regression Models for Bounded Continuous and Discrete Responses",
  "Version": "1.4.2",
  "Authors@R": "c(person(given = \"Roberto\",\nfamily = \"Ascari\",\nrole = c(\"aut\", \"cre\"),\nemail = \"roberto.ascari@unimib.it\"),\nperson(given = c(\"Agnese\", \"M.\"),\nfamily = \"Di Brisco\",\nrole = \"aut\"),\nperson(given = \"Sonia\",\nfamily = \"Migliorati\",\nrole = \"aut\"),\nperson(given = \"Andrea\",\nfamily = \"Ongaro\",\nrole = \"aut\"))",
  "Description": "Functions to fit regression models for bounded continuous\nand discrete responses. In case of bounded continuous responses\n(e.g., proportions and rates), available models are the\nflexible beta (Migliorati, S., Di Brisco, A. M., Ongaro, A.\n(2018) <doi:10.1214/17-BA1079>), the variance-inflated beta (Di\nBrisco, A. M., Migliorati, S., Ongaro, A. (2020)\n<doi:10.1177/1471082X18821213>), the beta (Ferrari, S.L.P.,\nCribari-Neto, F. (2004) <doi:10.1080/0266476042000214501>), and\ntheir augmented versions to handle the presence of zero/one\nvalues (Di Brisco, A. M., Migliorati, S. (2020)\n<doi:10.1002/sim.8406>) are implemented. In case of bounded\ndiscrete responses (e.g., bounded counts, such as the number of\nsuccesses in n trials), available models are the flexible\nbeta-binomial (Ascari, R., Migliorati, S. (2021)\n<doi:10.1002/sim.9005>), the beta-binomial, and the binomial\nare implemented. Inference is dealt with a Bayesian approach\nbased on the Hamiltonian Monte Carlo (HMC) algorithm (Gelman,\nA., Carlin, J. B., Stern, H. S., Rubin, D. B. (2014)\n<doi:10.1201/b16018>). Besides, functions to compute residuals,\nposterior predictives, goodness of fit measures, convergence\ndiagnostics, and graphical representations are provided.",
  "License": "GPL (>= 2)",
  "Encoding": "UTF-8",
  "RoxygenNote": "7.3.2",
  "Biarch": "true",
  "SystemRequirements": "GNU make",
  "NeedsCompilation": "yes",
  "Packaged": {
    "Date": "2026-09-29 11:25:05 UTC",
    "User": "root"
  },
  "Author": "Roberto Ascari [aut, cre], Agnese M. Di Brisco [aut], Sonia\nMigliorati [aut], Andrea Ongaro [aut]",
  "Maintainer": "Roberto Ascari <roberto.ascari@unimib.it>",
  "Config/pak/sysreqs": "make",
  "Repository": "https://cran.r-universe.dev",
  "Date/Publication": "2026-02-04 15:50:02 UTC",
  "RemoteUrl": "https://github.com/cran/FlexReg",
  "RemoteRef": "HEAD",
  "RemoteSha": "bf5185c94b6f41d64b16bf0ead520ccdac05406a",
  "_user": "cran",
  "_type": "src",
  "_file": "FlexReg_1.4.2.tar.gz",
  "_fileid": "https://r2.ropensci.org/fec368ca559d76342431a273ffeb72da9617223db4fc022e6ff3542f5861bf46",
  "_filesize": 474153,
  "_sha256": "fec368ca559d76342431a273ffeb72da9617223db4fc022e6ff3542f5861bf46",
  "_expires": "2027-01-07T11:54:14.000Z",
  "_created": "2026-09-29T11:25:05.000Z",
  "_published": "2026-09-29T11:54:15.993Z",
  "_jobs": [
    {
      "job": 109386720252,
      "time": 667,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11031335243"
    },
    {
      "job": 109386720243,
      "time": 771,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11030404080"
    },
    {
      "job": 109386720196,
      "time": 659,
      "config": "linux-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11030907886"
    },
    {
      "job": 109386720141,
      "time": 521,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11030119636"
    },
    {
      "job": 109382414480,
      "time": 756,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11030362913"
    },
    {
      "job": 109386720241,
      "time": 532,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "11030423468"
    },
    {
      "job": 109386720301,
      "time": 727,
      "config": "windows-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11031071070"
    },
    {
      "job": 109386720316,
      "time": 1170,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11030899176"
    },
    {
      "job": 109386720336,
      "time": 771,
      "config": "windows-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11030393984"
    },
    {
      "job": 109386720286,
      "time": 866,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11031430730"
    }
  ],
  "_host": "GitHub-Actions",
  "_buildurl": "https://github.com/r-universe/cran/actions/runs/36561227486",
  "_status": "success",
  "_upstream": "https://github.com/cran/FlexReg",
  "_commit": {
    "id": "bf5185c94b6f41d64b16bf0ead520ccdac05406a",
    "author": "Roberto Ascari <roberto.ascari@unimib.it>",
    "committer": "cran-robot <csardi.gabor+cran@gmail.com>",
    "message": "version 1.4.2\n",
    "time": 1770220202
  },
  "_maintainer": {
    "name": "Roberto Ascari",
    "email": "roberto.ascari@unimib.it"
  },
  "_distro": "resolute",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.5.0",
      "role": "Depends"
    },
    {
      "package": "BH",
      "version": ">= 1.66.0",
      "role": "LinkingTo"
    },
    {
      "package": "Rcpp",
      "version": ">= 0.12.0",
      "role": "LinkingTo"
    },
    {
      "package": "RcppEigen",
      "version": ">= 0.3.3.3.0",
      "role": "LinkingTo"
    },
    {
      "package": "RcppParallel",
      "version": ">= 5.0.1",
      "role": "LinkingTo"
    },
    {
      "package": "rstan",
      "version": ">= 2.18.1",
      "role": "LinkingTo"
    },
    {
      "package": "StanHeaders",
      "version": ">= 2.18.0",
      "role": "LinkingTo"
    },
    {
      "package": "Formula",
      "role": "Imports"
    },
    {
      "package": "bayesplot",
      "role": "Imports"
    },
    {
      "package": "ggplot2",
      "role": "Imports"
    },
    {
      "package": "loo",
      "role": "Imports"
    },
    {
      "package": "methods",
      "role": "Imports"
    },
    {
      "package": "Rcpp",
      "version": ">= 0.12.0",
      "role": "Imports"
    },
    {
      "package": "RcppParallel",
      "version": ">= 5.0.1",
      "role": "Imports"
    },
    {
      "package": "rstan",
      "version": ">= 2.18.1",
      "role": "Imports"
    },
    {
      "package": "rstantools",
      "version": ">= 2.4.0",
      "role": "Imports"
    }
  ],
  "_owner": "cran",
  "_selfowned": false,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-06",
      "n": 1
    }
  ],
  "_tags": [
    {
      "name": "1.4.2",
      "date": "2026-02-04"
    }
  ],
  "_stars": 0,
  "_userbio": {
    "uuid": 6899542,
    "type": "organization",
    "name": "cran",
    "followers": 630,
    "description": "Unofficial read-only mirror of all CRAN R packages"
  },
  "_downloads": {
    "count": 359,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/FlexReg"
  },
  "_searchresults": 0,
  "_topics": [
    "onetbb",
    "cpp"
  ],
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/FlexReg.html",
    "extra/manual.pdf"
  ],
  "_realowner": "cran",
  "_cranurl": false,
  "_releases": [
    {
      "version": "1.0",
      "date": "2020-11-05"
    },
    {
      "version": "1.1",
      "date": "2022-01-17"
    },
    {
      "version": "1.2",
      "date": "2022-09-16"
    },
    {
      "version": "1.3.0",
      "date": "2023-09-29"
    },
    {
      "version": "1.3.1",
      "date": "2025-04-14"
    },
    {
      "version": "1.4",
      "date": "2025-09-09"
    },
    {
      "version": "1.4.1",
      "date": "2025-09-11"
    },
    {
      "version": "1.4.2",
      "date": "2026-02-04"
    }
  ],
  "_exports": [
    "convergence.diag",
    "convergence.plot",
    "curve.density",
    "dBeta",
    "dBetaBin",
    "dFB",
    "dFBB",
    "dVIB",
    "flexreg",
    "flexreg_binom",
    "model_frame",
    "pBeta",
    "pBetaBin",
    "pFB",
    "pFBB",
    "posterior_predict",
    "pVIB",
    "qBeta",
    "qBetaBin",
    "qFB",
    "qFBB",
    "qVIB",
    "R2_bayes",
    "rBeta",
    "rBetaBin",
    "rFB",
    "rFBB",
    "rVIB",
    "WAIC"
  ],
  "_datasets": [
    {
      "name": "Atomic",
      "title": "Atomic bombs data",
      "object": "Atomic",
      "file": "Atomic.RData",
      "class": [
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "y.perc",
        "y",
        "n",
        "dose",
        "bomb"
      ],
      "rows": 1039,
      "table": true,
      "tojson": true
    },
    {
      "name": "Bacteria",
      "title": "Bacteria data",
      "object": "Bacteria",
      "file": "Bacteria.RData",
      "class": [
        "data.frame"
      ],
      "fields": [
        "y.perc",
        "y",
        "n",
        "females",
        "females_std"
      ],
      "rows": 70,
      "table": true,
      "tojson": true
    },
    {
      "name": "Consumption",
      "title": "Italian Households Consumption data",
      "object": "Consumption",
      "file": "Consumption.RData",
      "class": [
        "data.frame"
      ],
      "fields": [
        "NComp",
        "Sex",
        "Age",
        "NEarners",
        "Area",
        "Citizenship",
        "Income",
        "Consumption"
      ],
      "rows": 568,
      "table": true,
      "tojson": true
    },
    {
      "name": "Election",
      "title": "Italian Election Results",
      "object": "Election",
      "file": "Election.RData",
      "class": [
        "data.frame"
      ],
      "fields": [
        "NVotes",
        "FI",
        "FDI",
        "LEGA",
        "LEU",
        "M5S",
        "PD",
        "Other",
        "AgeInd",
        "PopDens",
        "ER",
        "Illiteracy",
        "Foreign"
      ],
      "rows": 232,
      "table": true,
      "tojson": true
    },
    {
      "name": "Reading",
      "title": "Reading Skills data",
      "object": "Reading",
      "file": "Reading.RData",
      "class": [
        "data.frame"
      ],
      "fields": [
        "accuracy",
        "accuracy.adj",
        "dyslexia",
        "iq"
      ],
      "rows": 44,
      "table": true,
      "tojson": true
    },
    {
      "name": "Stress",
      "title": "Stress and anxiety data",
      "object": "Stress",
      "file": "Stress.RData",
      "class": [
        "data.frame"
      ],
      "fields": [
        "stress",
        "anxiety"
      ],
      "rows": 166,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "Atomic",
      "title": "Atomic bombs data",
      "topics": [
        "Atomic"
      ]
    },
    {
      "page": "Bacteria",
      "title": "Bacteria data",
      "topics": [
        "Bacteria"
      ]
    },
    {
      "page": "Consumption",
      "title": "Italian Households Consumption data",
      "topics": [
        "Consumption"
      ]
    },
    {
      "page": "convergence.diag",
      "title": "Convergence diagnostics",
      "topics": [
        "convergence.diag",
        "print.convergence.diag.flexreg"
      ]
    },
    {
      "page": "convergence.plot",
      "title": "Convergence plots",
      "topics": [
        "convergence.plot"
      ]
    },
    {
      "page": "curve.density",
      "title": "Draw density plots",
      "topics": [
        "curve.density"
      ]
    },
    {
      "page": "Beta",
      "title": "The Mean-Precision Parameterized Beta Distribution",
      "topics": [
        "dBeta",
        "pBeta",
        "qBeta",
        "rBeta"
      ]
    },
    {
      "page": "BetaBin",
      "title": "The Beta-Binomial Distribution",
      "topics": [
        "dBetaBin",
        "pBetaBin",
        "qBetaBin",
        "rBetaBin"
      ]
    },
    {
      "page": "FB",
      "title": "The Flexible Beta Distribution",
      "topics": [
        "dFB",
        "pFB",
        "qFB",
        "rFB"
      ]
    },
    {
      "page": "FBB",
      "title": "The Flexible Beta-Binomial Distribution",
      "topics": [
        "dFBB",
        "pFBB",
        "qFBB",
        "rFBB"
      ]
    },
    {
      "page": "VIB",
      "title": "The Variance-Inflated Beta Distribution",
      "topics": [
        "dVIB",
        "pVIB",
        "qVIB",
        "rVIB"
      ]
    },
    {
      "page": "Election",
      "title": "Italian Election Results",
      "topics": [
        "Election"
      ]
    },
    {
      "page": "flexreg",
      "title": "Flexible Regression Models for Bounded Continuous Responses",
      "topics": [
        "flexreg"
      ]
    },
    {
      "page": "flexreg_binom",
      "title": "Flexible Regression Models for Bounded Discrete Responses",
      "topics": [
        "flexreg_binom"
      ]
    },
    {
      "page": "model_frame",
      "title": "Construct Design Matrices for flexreg Objects",
      "topics": [
        "model_frame"
      ]
    },
    {
      "page": "model.matrix.flexreg",
      "title": "Construct Design Matrices for flexreg Objects",
      "topics": [
        "model.matrix.flexreg"
      ]
    },
    {
      "page": "plot.flexreg",
      "title": "Plot Method for 'flexreg' Objects",
      "topics": [
        "plot.flexreg"
      ]
    },
    {
      "page": "plot.flexreg_postpred",
      "title": "Plot Method for '`flexreg_postpred`' objects",
      "topics": [
        "plot.flexreg_postpred"
      ]
    },
    {
      "page": "posterior_predict.flexreg",
      "title": "Posterior Predictive Method for '`flexreg`' objects",
      "topics": [
        "posterior_predict.flexreg"
      ]
    },
    {
      "page": "predict.flexreg",
      "title": "Predict Method for '`flexreg`' Objects",
      "topics": [
        "predict.flexreg"
      ]
    },
    {
      "page": "print.flexreg",
      "title": "Print Methods for flexreg Objects",
      "topics": [
        "print.flexreg"
      ]
    },
    {
      "page": "R2_bayes",
      "title": "Bayesian R-squared for 'flexreg' Objects",
      "topics": [
        "R2_bayes"
      ]
    },
    {
      "page": "Reading",
      "title": "Reading Skills data",
      "topics": [
        "Reading"
      ]
    },
    {
      "page": "residuals.flexreg",
      "title": "Residuals Method for flexreg Objects",
      "topics": [
        "residuals.flexreg"
      ]
    },
    {
      "page": "Stress",
      "title": "Stress and anxiety data",
      "topics": [
        "Stress"
      ]
    },
    {
      "page": "summary.flexreg",
      "title": "Methods for '`flexreg`' Objects",
      "topics": [
        "coef.flexreg",
        "print.summary.flexreg",
        "summary.flexreg"
      ]
    },
    {
      "page": "summary.flexreg_postpred",
      "title": "Summary Method for '`flexreg_postpred`' objects",
      "topics": [
        "summary.flexreg_postpred"
      ]
    },
    {
      "page": "WAIC",
      "title": "WAIC and LOO",
      "topics": [
        "print.WAIC.flexreg",
        "WAIC"
      ]
    }
  ],
  "_rundeps": [
    "abind",
    "backports",
    "bayesplot",
    "BH",
    "callr",
    "checkmate",
    "cli",
    "cpp11",
    "desc",
    "distributional",
    "dplyr",
    "farver",
    "Formula",
    "generics",
    "ggdist",
    "ggplot2",
    "ggridges",
    "glue",
    "gridExtra",
    "gtable",
    "inline",
    "isoband",
    "labeling",
    "lifecycle",
    "loo",
    "magrittr",
    "matrixStats",
    "numDeriv",
    "otel",
    "pillar",
    "pkgbuild",
    "pkgconfig",
    "plyr",
    "posterior",
    "processx",
    "ps",
    "purrr",
    "quadprog",
    "QuickJSR",
    "R6",
    "RColorBrewer",
    "Rcpp",
    "RcppEigen",
    "RcppParallel",
    "reshape2",
    "rlang",
    "rstan",
    "rstantools",
    "S7",
    "scales",
    "StanHeaders",
    "stringi",
    "stringr",
    "tensorA",
    "tibble",
    "tidyr",
    "tidyselect",
    "utf8",
    "vctrs",
    "viridisLite",
    "withr"
  ],
  "_sysdeps": [
    {
      "shlib": "libtbb",
      "package": "libtbb12",
      "headers": "libtbb-dev",
      "source": "onetbb",
      "version": "2022.3.0-2",
      "name": "onetbb",
      "homepage": "https://uxlfoundation.github.io/oneTBB/",
      "description": "parallelism library for C++ - runtime files"
    },
    {
      "shlib": "libstdc++",
      "package": "libstdc++6",
      "source": "gcc",
      "version": "16-20260322-1ubuntu1",
      "name": "c++",
      "homepage": "http://gcc.gnu.org/",
      "description": "GNU Standard C++ Library v3"
    }
  ],
  "_score": 1,
  "_indexed": true,
  "_nocasepkg": "flexreg",
  "_universes": [
    "cran"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.4.2",
      "date": "2026-09-29T11:36:27.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "bf5185c94b6f41d64b16bf0ead520ccdac05406a",
      "fileid": "https://r2.ropensci.org/0d3aac0d052f50be8a8778b0df634496be53e748ab84f121c8e9253fcb04df7b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/36561227486"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.4.2",
      "date": "2026-09-29T11:37:02.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "bf5185c94b6f41d64b16bf0ead520ccdac05406a",
      "fileid": "https://r2.ropensci.org/c1a3176b12cab743f0e687dc9cd24797139a648c0e874e442cee91d5a10d04ae",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/36561227486"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "1.4.2",
      "date": "2026-09-29T11:36:26.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "bf5185c94b6f41d64b16bf0ead520ccdac05406a",
      "fileid": "https://r2.ropensci.org/f3b26a331f0c24d6889d2162491da7dff031f87ad22a1ac9911931407408a0a1",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/36561227486"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "1.4.2",
      "date": "2026-09-29T11:36:30.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "bf5185c94b6f41d64b16bf0ead520ccdac05406a",
      "fileid": "https://r2.ropensci.org/244702e5bd2bb0ba0d56151c0f38e2819f71fbf4cb5f543d8e15f1b68483aad9",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/36561227486"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.4.2",
      "date": "2026-09-29T11:37:04.000Z",
      "arch": "emscripten",
      "commit": "bf5185c94b6f41d64b16bf0ead520ccdac05406a",
      "fileid": "https://r2.ropensci.org/6e7ab2a5f1817d68580ba57bdf313fa52548e12f465e37e599370738da62401f",
      "status": "success",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/36561227486"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.4.2",
      "date": "2026-09-29T11:37:20.000Z",
      "arch": "aarch64",
      "commit": "bf5185c94b6f41d64b16bf0ead520ccdac05406a",
      "fileid": "https://r2.ropensci.org/8e8badf3088fc5d0abab5a59b31d500ade734b2dde0edc68c5b75f2bd5a8a4ef",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/36561227486"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.4.2",
      "date": "2026-09-29T11:35:45.000Z",
      "arch": "x86_64",
      "commit": "bf5185c94b6f41d64b16bf0ead520ccdac05406a",
      "fileid": "https://r2.ropensci.org/46b35fc6b6191ef41d669a21917b3ae6e72a4daf5cb6fc0712608f09afdb100c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/36561227486"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "1.4.2",
      "date": "2026-09-29T11:37:59.000Z",
      "arch": "aarch64",
      "commit": "bf5185c94b6f41d64b16bf0ead520ccdac05406a",
      "fileid": "https://r2.ropensci.org/1066f78169f7bbd854c1601f807c5394d307145d5e24a79aaa0785e04bb47077",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/36561227486"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "1.4.2",
      "date": "2026-09-29T11:35:39.000Z",
      "arch": "x86_64",
      "commit": "bf5185c94b6f41d64b16bf0ead520ccdac05406a",
      "fileid": "https://r2.ropensci.org/6f4727a5a690ec4940e48e683e35186ab335b2e6610e89865be25d5460a8618f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/36561227486"
    }
  ]
}