{
  "_id": "6a115ac4acfb0bcc41cebfea",
  "Package": "MAPCtools",
  "Title": "Multivariate Age-Period-Cohort (MAPC) Modeling for Health Data",
  "Version": "0.1.0",
  "Authors@R": "person(given = \"Lars\", family = \"Vatten\", email= \"lavatt99@gmail.com\", role = c(\"aut\", \"cre\"))",
  "Description": "Bayesian multivariate age-period-cohort (MAPC) models for\nanalyzing health data, with support for model fitting,\nvisualization, stratification, and model comparison. Inference\nfocuses on identifiable cross-strata differences, as described\nby Riebler and Held (2010) <doi:10.1093/biostatistics/kxp037>.\nMethods for handling complex survey data via the 'survey'\npackage are included, as described in Mercer et al. (2014)\n<doi:10.1016/j.spasta.2013.12.001>.",
  "License": "MIT + file LICENSE",
  "Encoding": "UTF-8",
  "Roxygen": "list(markdown = TRUE)",
  "RoxygenNote": "7.3.2",
  "VignetteBuilder": "knitr",
  "URL": "https://github.com/LarsVatten/MAPCtools",
  "BugReports": "https://github.com/LarsVatten/MAPCtools/issues",
  "Additional_repositories": "https://inla.r-inla-download.org/R/stable/",
  "Config/testthat/edition": "3",
  "Config/pak/sysreqs": "cmake make libicu-dev",
  "Repository": "https://larsvatten.r-universe.dev",
  "Date/Publication": "2025-06-27 22:50:44 UTC",
  "RemoteUrl": "https://github.com/larsvatten/mapctools",
  "RemoteRef": "HEAD",
  "RemoteSha": "43b12afa805aa618a715e840d54c7b3f4df27026",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-05-23 07:39:57 UTC",
    "User": "root"
  },
  "Author": "Lars Vatten [aut, cre]",
  "Maintainer": "Lars Vatten <lavatt99@gmail.com>",
  "MD5sum": "b3888d1383a5810dd2896f876c7eaec7",
  "_user": "larsvatten",
  "_type": "src",
  "_file": "MAPCtools_0.1.0.tar.gz",
  "_fileid": "e775b821150b05bb7d71ad2d84613c981cecb46f1c4a1136fbcf6fa04edd4dd8",
  "_filesize": 6257970,
  "_sha256": "e775b821150b05bb7d71ad2d84613c981cecb46f1c4a1136fbcf6fa04edd4dd8",
  "_created": "2026-05-23T07:39:57.000Z",
  "_published": "2026-05-23T07:44:04.875Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 77506894672,
      "time": 174,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7175382290"
    },
    {
      "job": 77506894669,
      "time": 203,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7175384723"
    },
    {
      "job": 77506894667,
      "time": 164,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7175379363"
    },
    {
      "job": 77506894673,
      "time": 197,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7175381406"
    },
    {
      "job": 77506678200,
      "time": 270,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7175365519"
    },
    {
      "job": 77506894671,
      "time": 142,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7175379605"
    },
    {
      "job": 77506894674,
      "time": 148,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7175380129"
    },
    {
      "job": 77506894676,
      "time": 142,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7175379629"
    },
    {
      "job": 77506894675,
      "time": 145,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7175379847"
    }
  ],
  "_buildurl": "https://github.com/r-universe/larsvatten/actions/runs/26327087941",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/larsvatten/mapctools",
  "_commit": {
    "id": "43b12afa805aa618a715e840d54c7b3f4df27026",
    "author": "LarsVatten <114655580+LarsVatten@users.noreply.github.com>",
    "committer": "LarsVatten <114655580+LarsVatten@users.noreply.github.com>",
    "message": "Can't return non-existing plot, if plot fails in fit_all_mapc()\n",
    "time": 1751064644
  },
  "_maintainer": {
    "name": "Lars Vatten",
    "email": "lavatt99@gmail.com",
    "login": "larsvatten",
    "description": "",
    "uuid": 114655580
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.5",
      "role": "Depends"
    },
    {
      "package": "dplyr",
      "role": "Imports"
    },
    {
      "package": "tidyselect",
      "role": "Imports"
    },
    {
      "package": "fastDummies",
      "role": "Imports"
    },
    {
      "package": "stringr",
      "role": "Imports"
    },
    {
      "package": "rlang",
      "role": "Imports"
    },
    {
      "package": "tidyr",
      "role": "Imports"
    },
    {
      "package": "ggplot2",
      "role": "Imports"
    },
    {
      "package": "viridis",
      "role": "Imports"
    },
    {
      "package": "scales",
      "role": "Imports"
    },
    {
      "package": "purrr",
      "role": "Imports"
    },
    {
      "package": "grid",
      "role": "Imports"
    },
    {
      "package": "gridExtra",
      "role": "Imports"
    },
    {
      "package": "ggpubr",
      "role": "Imports"
    },
    {
      "package": "tibble",
      "role": "Imports"
    },
    {
      "package": "survey",
      "role": "Imports"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "INLA",
      "role": "Suggests"
    }
  ],
  "_owner": "larsvatten",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2025-23",
      "n": 7
    },
    {
      "week": "2025-24",
      "n": 1
    },
    {
      "week": "2025-26",
      "n": 2
    }
  ],
  "_tags": [],
  "_stars": 1,
  "_contributors": [
    {
      "user": "larsvatten",
      "count": 21,
      "uuid": 114655580
    }
  ],
  "_userbio": {
    "uuid": 114655580,
    "type": "user",
    "name": "LarsVatten"
  },
  "_downloads": {
    "count": 241,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/MAPCtools"
  },
  "_devurl": "https://github.com/larsvatten/mapctools",
  "_searchresults": 3,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/MAPCtools.html",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/larsvatten/mapctools",
  "_realowner": "larsvatten",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.1.0",
      "date": "2025-06-25"
    }
  ],
  "_exports": [
    "aggregate_df",
    "as.APC.df",
    "as.APC.NA.df",
    "fit_all_MAPC",
    "fit_MAPC",
    "generate_apc_lincombs",
    "generate_MAPC_formula",
    "plot_binned_counts",
    "plot_counts_1D",
    "plot_counts_2D",
    "plot_counts_with_mean",
    "plot_lincombs",
    "plot_mean_response_1D",
    "plot_mean_response_2D",
    "plot_missing_data",
    "validate_lincombs_against_formula"
  ],
  "_datasets": [
    {
      "name": "toy_data",
      "title": "Synthetic Age-Period-Cohort Dataset",
      "object": "toy_data",
      "file": "toy_data.rda",
      "class": [
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "age",
        "period",
        "cohort",
        "education",
        "sex",
        "count",
        "known_rate"
      ],
      "rows": 10000,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "aggregate_df",
      "title": "Aggregate data across an entire data frame using sufficient statistics",
      "topics": [
        "aggregate_df"
      ]
    },
    {
      "page": "as.APC.df",
      "title": "Add 1-indexed APC columns to data frame, handling numeric or categorical age/period",
      "topics": [
        "as.APC.df"
      ]
    },
    {
      "page": "as.APC.NA.df",
      "title": "Create NA structure across age, period and cohort groups based on strata",
      "topics": [
        "as.APC.NA.df"
      ]
    },
    {
      "page": "fit_all_MAPC",
      "title": "Fit all configurations of MAPC models using INLA",
      "topics": [
        "fit_all_MAPC"
      ]
    },
    {
      "page": "fit_MAPC",
      "title": "Fit a multivariable age-period-cohort model",
      "topics": [
        "fit_MAPC"
      ]
    },
    {
      "page": "generate_apc_lincombs",
      "title": "Generate Age-Period-Cohort Linear Combinations for INLA",
      "topics": [
        "generate_apc_lincombs"
      ]
    },
    {
      "page": "generate_MAPC_formula",
      "title": "Generate MAPC formula for INLA",
      "topics": [
        "generate_MAPC_formula"
      ]
    },
    {
      "page": "plot_binned_counts",
      "title": "Plot counts of observations across bins of a numeric variable, optionally stratified",
      "topics": [
        "plot_binned_counts"
      ]
    },
    {
      "page": "plot_counts_1D",
      "title": "Plot counts of observations across a single variable, optionally stratified",
      "topics": [
        "plot_counts_1D"
      ]
    },
    {
      "page": "plot_counts_2D",
      "title": "Plot counts of observations across two dimensions, optionally stratified",
      "topics": [
        "plot_counts_2D"
      ]
    },
    {
      "page": "plot_counts_with_mean",
      "title": "Plot heatmap of observation counts with mean overlay, optionally stratified",
      "topics": [
        "plot_counts_with_mean"
      ]
    },
    {
      "page": "plot_lincombs",
      "title": "Plot Linear Combinations of Age-Period-Cohort Effects by Strata",
      "topics": [
        "plot_lincombs"
      ]
    },
    {
      "page": "plot_mean_response_1D",
      "title": "Plot mean of a response variable across a single variable, optionally stratified",
      "topics": [
        "plot_mean_response_1D"
      ]
    },
    {
      "page": "plot_mean_response_2D",
      "title": "Plot mean of a response variable across two dimensions, optionally stratified",
      "topics": [
        "plot_mean_response_2D"
      ]
    },
    {
      "page": "plot_missing_data",
      "title": "Plot Missing Group Combinations",
      "topics": [
        "plot_missing_data"
      ]
    },
    {
      "page": "toy_data",
      "title": "Synthetic Age-Period-Cohort Dataset",
      "topics": [
        "toy_data"
      ]
    },
    {
      "page": "validate_lincombs_against_formula",
      "title": "Validate lincomb terms against an INLA formula",
      "topics": [
        "validate_lincombs_against_formula"
      ]
    }
  ],
  "_readme": "https://github.com/larsvatten/mapctools/raw/HEAD/README.md",
  "_rundeps": [
    "abind",
    "backports",
    "boot",
    "broom",
    "car",
    "carData",
    "cli",
    "colorspace",
    "corrplot",
    "cowplot",
    "cpp11",
    "data.table",
    "DBI",
    "Deriv",
    "doBy",
    "dplyr",
    "farver",
    "fastDummies",
    "forecast",
    "Formula",
    "fracdiff",
    "generics",
    "ggplot2",
    "ggpubr",
    "ggrepel",
    "ggsci",
    "ggsignif",
    "glue",
    "gridExtra",
    "gtable",
    "isoband",
    "labeling",
    "lattice",
    "lifecycle",
    "lme4",
    "lmtest",
    "magrittr",
    "MASS",
    "Matrix",
    "MatrixModels",
    "mgcv",
    "microbenchmark",
    "minqa",
    "mitools",
    "modelr",
    "nlme",
    "nloptr",
    "nnet",
    "numDeriv",
    "pbkrtest",
    "pillar",
    "pkgconfig",
    "polynom",
    "purrr",
    "quantreg",
    "R6",
    "rbibutils",
    "RColorBrewer",
    "Rcpp",
    "RcppArmadillo",
    "RcppEigen",
    "Rdpack",
    "reformulas",
    "rlang",
    "rstatix",
    "S7",
    "scales",
    "SparseM",
    "stringi",
    "stringr",
    "survey",
    "survival",
    "tibble",
    "tidyr",
    "tidyselect",
    "timeDate",
    "urca",
    "utf8",
    "vctrs",
    "viridis",
    "viridisLite",
    "withr",
    "zoo"
  ],
  "_vignettes": [
    {
      "source": "quickstart.Rmd",
      "filename": "quickstart.html",
      "title": "Quickstart: Exploratory Analysis & Model Fitting",
      "author": "Lars Vatten",
      "engine": "knitr::rmarkdown",
      "headings": [
        "1 Exploratory analysis",
        "1.0 Load the toy dataset",
        "1.1 Examine Missing Data",
        "1.2 Examine observation counts",
        "1.3 Examine the response",
        "2 Model fitting",
        "2.0 Examine known rates",
        "2.1 Fit a single MAPC model with fit_MAPC()",
        "2.2 Fit multiple MAPC models with fit_all_MAPC()"
      ],
      "created": "2025-06-25 15:59:04",
      "modified": "2025-06-25 15:59:04",
      "commits": 1
    }
  ],
  "_score": 4.176091259055681,
  "_indexed": true,
  "_nocasepkg": "mapctools",
  "_universes": [
    "larsvatten"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.0",
      "date": "2026-05-23T07:42:22.000Z",
      "distro": "noble",
      "commit": "43b12afa805aa618a715e840d54c7b3f4df27026",
      "fileid": "5b58d84c37624b0c03a5386f7e410c3893608073243347a5b3eb51ced0f957bc",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/larsvatten/actions/runs/26327087941"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.1.0",
      "date": "2026-05-23T07:42:46.000Z",
      "distro": "noble",
      "commit": "43b12afa805aa618a715e840d54c7b3f4df27026",
      "fileid": "062764900ad3bd485c412ec06bfbaaa362ba8c3a4b7053454de2b1423d1f2e64",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/larsvatten/actions/runs/26327087941"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.1.0",
      "date": "2026-05-23T07:42:09.000Z",
      "commit": "43b12afa805aa618a715e840d54c7b3f4df27026",
      "fileid": "b8df388457a2956069726899f377727fdd6e360b2d2f1c6a2e4eea80c9eb42c6",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/larsvatten/actions/runs/26327087941"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.1.0",
      "date": "2026-05-23T07:42:22.000Z",
      "commit": "43b12afa805aa618a715e840d54c7b3f4df27026",
      "fileid": "5accde7ab33e9fdc628fe22c2db1d2cfc8e08773c840fb441a51955fcade9a90",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/larsvatten/actions/runs/26327087941"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.1.0",
      "date": "2026-05-23T07:42:43.000Z",
      "commit": "43b12afa805aa618a715e840d54c7b3f4df27026",
      "fileid": "091912ed1c8405181d446330ed143745afb0e1bec59857453123ff6a02123da2",
      "status": "success",
      "buildurl": "https://github.com/r-universe/larsvatten/actions/runs/26327087941"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.1.0",
      "date": "2026-05-23T07:41:45.000Z",
      "commit": "43b12afa805aa618a715e840d54c7b3f4df27026",
      "fileid": "60a513f4e0c9fda38674604f7a9e05629accb1c0c0d0e4269ca57d14893c3bbe",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/larsvatten/actions/runs/26327087941"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.1.0",
      "date": "2026-05-23T07:41:39.000Z",
      "commit": "43b12afa805aa618a715e840d54c7b3f4df27026",
      "fileid": "19a694598b152566286572b2489bf12f6b46471c1d3b7598b7676da6cb0a4cfb",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/larsvatten/actions/runs/26327087941"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.1.0",
      "date": "2026-05-23T07:41:29.000Z",
      "commit": "43b12afa805aa618a715e840d54c7b3f4df27026",
      "fileid": "cf332437256740cc3adc57c99e4f8df6c8edf47f5307fd4609746a2af8c29869",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/larsvatten/actions/runs/26327087941"
    }
  ]
}