{
  "_id": "6a1fff49b401979e734455c1",
  "Type": "Package",
  "Package": "actuary",
  "Title": "Actuarial Functions and Utilities",
  "Version": "0.1.2",
  "Authors@R": "person(\"Andrew\", \"Wilson\", , \"andrewm.wilson@gmail.com\", role = c(\"aut\", \"cre\", \"cph\"))",
  "Description": "Provides actuarial modeling tools for Monte Carlo loss\nsimulations, loss reserving, and reinsurance layer loss\ncalculations. It enables users to generate stochastic loss\ndatasets with customisable frequency and severity\ndistributions, fit development patterns to claim triangles, and\ncalculate reinsurance losses for occurrence and aggregate\nlayers with user-defined retentions, limits, and\nreinstatements. For development pattern selection, the package\nincludes a machine learning approach that evaluates multiple\nreserving models using holdout validation to identify the\nbest-fitting pattern based on predictive accuracy, this is\nbased on the algorithm described in Richman, R and Balona, C\n(2020)<https://www.ssrn.com/abstract=3697256>.",
  "License": "MIT + file LICENSE",
  "BugReports": "https://github.com/andrewwilson201/actuary/issues",
  "Encoding": "UTF-8",
  "Language": "en-US",
  "LazyData": "true",
  "RoxygenNote": "7.3.2",
  "Config/pak/sysreqs": "libicu-dev libjpeg-dev libpng-dev libxml2-dev\nlibssl-dev",
  "Repository": "https://andrewwilson201.r-universe.dev",
  "Date/Publication": "2026-02-27 21:54:53 UTC",
  "RemoteUrl": "https://github.com/andrewwilson201/actuary",
  "RemoteRef": "HEAD",
  "RemoteSha": "11d3dce94e22cc9295f622f2d73ca6e49c87c079",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-06-03 10:14:17 UTC",
    "User": "root"
  },
  "Author": "Andrew Wilson [aut, cre, cph]",
  "Maintainer": "Andrew Wilson <andrewm.wilson@gmail.com>",
  "MD5sum": "4b151f9f845e938245b9e079e0d6c0dc",
  "_user": "andrewwilson201",
  "_type": "src",
  "_file": "actuary_0.1.2.tar.gz",
  "_fileid": "1cf9b6bfd1d6036159e0a2ce1d1540d8b253a8b380abdd9612b60982823d38d6",
  "_filesize": 1059392,
  "_sha256": "1cf9b6bfd1d6036159e0a2ce1d1540d8b253a8b380abdd9612b60982823d38d6",
  "_created": "2026-06-03T10:14:17.000Z",
  "_published": "2026-06-03T10:17:45.430Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 79271302295,
      "time": 125,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7381815267"
    },
    {
      "job": 79271302357,
      "time": 130,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7381817264"
    },
    {
      "job": 79271302293,
      "time": 175,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7381822263"
    },
    {
      "job": 79271302341,
      "time": 159,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7381818481"
    },
    {
      "job": 79270854487,
      "time": 160,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7381769975"
    },
    {
      "job": 79271302277,
      "time": 124,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7381814579"
    },
    {
      "job": 79271302262,
      "time": 82,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7381799731"
    },
    {
      "job": 79271302216,
      "time": 98,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7381805833"
    },
    {
      "job": 79271302198,
      "time": 130,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7381816611"
    }
  ],
  "_buildurl": "https://github.com/r-universe/andrewwilson201/actions/runs/26878121272",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/andrewwilson201/actuary",
  "_commit": {
    "id": "11d3dce94e22cc9295f622f2d73ca6e49c87c079",
    "author": "andrewwilson201 <andrewm.wilson@gmail.com>",
    "committer": "andrewwilson201 <andrewm.wilson@gmail.com>",
    "message": "Fix donttest examples causing check failures\n\n- Revert layer_loss examples to \\donttest{} — dtplyr causes a segfault\n  when run via Rscript on Windows\n- Reduce fit_development_pattern_ml and ml_pattern_range donttest examples\n  to a small 4-row parameter grid to avoid timeout\n- Set num_cores = 1 in ML examples to avoid spawning background processes\n- Regenerate affected man pages with roxygen2\n\nCo-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>\n",
    "time": 1772229293
  },
  "_maintainer": {
    "name": "Andrew Wilson",
    "email": "andrewm.wilson@gmail.com",
    "login": "andrewwilson201",
    "description": "",
    "uuid": 28627592
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.1.0",
      "role": "Depends"
    },
    {
      "package": "dplyr",
      "role": "Imports"
    },
    {
      "package": "dtplyr",
      "role": "Imports"
    },
    {
      "package": "forcats",
      "role": "Imports"
    },
    {
      "package": "furrr",
      "role": "Imports"
    },
    {
      "package": "future",
      "role": "Imports"
    },
    {
      "package": "gamlss.dist",
      "role": "Imports"
    },
    {
      "package": "ggplot2",
      "role": "Imports"
    },
    {
      "package": "ggtext",
      "role": "Imports"
    },
    {
      "package": "grDevices",
      "role": "Imports"
    },
    {
      "package": "MASS",
      "role": "Imports"
    },
    {
      "package": "pracma",
      "role": "Imports"
    },
    {
      "package": "progress",
      "role": "Imports"
    },
    {
      "package": "purrr",
      "role": "Imports"
    },
    {
      "package": "rlang",
      "role": "Imports"
    },
    {
      "package": "scales",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "tidyr",
      "role": "Imports"
    },
    {
      "package": "yardstick",
      "role": "Imports"
    },
    {
      "package": "spelling",
      "role": "Suggests"
    }
  ],
  "_owner": "andrewwilson201",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-09",
      "n": 2
    }
  ],
  "_tags": [],
  "_stars": 1,
  "_contributors": [
    {
      "user": "andrewwilson201",
      "count": 65,
      "uuid": 28627592
    }
  ],
  "_userbio": {
    "uuid": 28627592,
    "type": "user",
    "name": "andrewwilson201"
  },
  "_downloads": {
    "count": 531,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/actuary"
  },
  "_devurl": "https://github.com/andrewwilson201/actuary",
  "_searchresults": 2,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/actuary.html",
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/andrewwilson201/actuary",
  "_realowner": "andrewwilson201",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.1.2",
      "date": "2026-03-04"
    }
  ],
  "_exports": [
    "create_simulations",
    "fit_development_pattern",
    "fit_development_pattern_ml",
    "layer_loss",
    "ml_pattern_range",
    "plot_development_pattern"
  ],
  "_datasets": [
    {
      "name": "losses",
      "title": "example simulated loss data",
      "object": "losses",
      "class": [
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "year",
        "amount",
        "territory_peril"
      ],
      "rows": 99485,
      "table": true,
      "tojson": true
    },
    {
      "name": "triangle_data",
      "title": "example triangle data",
      "object": "triangle_data",
      "class": [
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "uw_year",
        "dev_year",
        "claim_number"
      ],
      "rows": 55,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "create_simulations",
      "title": "create dataset of monte carlo simulations",
      "topics": [
        "create_simulations"
      ]
    },
    {
      "page": "fit_development_pattern",
      "title": "fit chain ladder development pattern",
      "topics": [
        "fit_development_pattern"
      ]
    },
    {
      "page": "fit_development_pattern_ml",
      "title": "fit multiple development patterns and assess goodness of fit",
      "topics": [
        "fit_development_pattern_ml"
      ]
    },
    {
      "page": "layer_loss",
      "title": "calculate occurrence or aggregate layer losses",
      "topics": [
        "layer_loss"
      ]
    },
    {
      "page": "losses",
      "title": "example simulated loss data",
      "topics": [
        "losses"
      ]
    },
    {
      "page": "ml_pattern_range",
      "title": "get range of development patterns from fit_development_pattern_ml function",
      "topics": [
        "ml_pattern_range"
      ]
    },
    {
      "page": "plot_development_pattern",
      "title": "plot a develoment pattern fitted using the fit_development_pattern function",
      "topics": [
        "plot_development_pattern"
      ]
    },
    {
      "page": "triangle_data",
      "title": "example triangle data",
      "topics": [
        "triangle_data"
      ]
    }
  ],
  "_readme": "https://github.com/andrewwilson201/actuary/raw/HEAD/README.md",
  "_rundeps": [
    "cli",
    "codetools",
    "commonmark",
    "cpp11",
    "crayon",
    "curl",
    "data.table",
    "digest",
    "dplyr",
    "dtplyr",
    "farver",
    "forcats",
    "furrr",
    "future",
    "gamlss.dist",
    "generics",
    "ggplot2",
    "ggtext",
    "globals",
    "glue",
    "gridtext",
    "gtable",
    "hardhat",
    "hms",
    "isoband",
    "jpeg",
    "labeling",
    "lifecycle",
    "listenv",
    "litedown",
    "magrittr",
    "markdown",
    "MASS",
    "parallelly",
    "pillar",
    "pkgconfig",
    "png",
    "pracma",
    "prettyunits",
    "progress",
    "purrr",
    "R6",
    "RColorBrewer",
    "Rcpp",
    "rlang",
    "S7",
    "scales",
    "sparsevctrs",
    "stringi",
    "stringr",
    "tibble",
    "tidyr",
    "tidyselect",
    "utf8",
    "vctrs",
    "viridisLite",
    "withr",
    "xfun",
    "xml2",
    "yardstick"
  ],
  "_score": 2.6989700043360187,
  "_indexed": true,
  "_nocasepkg": "actuary",
  "_universes": [
    "andrewwilson201"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.2",
      "date": "2026-06-03T10:16:25.000Z",
      "distro": "noble",
      "commit": "11d3dce94e22cc9295f622f2d73ca6e49c87c079",
      "fileid": "dee27087a177a0b867c8e2fbebbb81ebe070234f3d37402f31070193d1d1a836",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/andrewwilson201/actions/runs/26878121272"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.1.2",
      "date": "2026-06-03T10:16:29.000Z",
      "distro": "noble",
      "commit": "11d3dce94e22cc9295f622f2d73ca6e49c87c079",
      "fileid": "2497e9180cd1c6380b6fd9587693b511b8bd2c6862578ced3f6b66493c19e349",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/andrewwilson201/actions/runs/26878121272"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.1.2",
      "date": "2026-06-03T10:16:47.000Z",
      "commit": "11d3dce94e22cc9295f622f2d73ca6e49c87c079",
      "fileid": "6db1b0ac842eccd6812f2ac4380e54764cddf4dc503012a0b9c4ce97def235eb",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/andrewwilson201/actions/runs/26878121272"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.1.2",
      "date": "2026-06-03T10:16:37.000Z",
      "commit": "11d3dce94e22cc9295f622f2d73ca6e49c87c079",
      "fileid": "a7134fb2f4a2399d23502efde2812fbb02ad25de236e05be257c3ef8102fbd80",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/andrewwilson201/actions/runs/26878121272"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.1.2",
      "date": "2026-06-03T10:16:34.000Z",
      "commit": "11d3dce94e22cc9295f622f2d73ca6e49c87c079",
      "fileid": "c64e9faefdec46e9f90e6c9eca804ae947eebe083540f084d58536dfcdb416d2",
      "status": "success",
      "buildurl": "https://github.com/r-universe/andrewwilson201/actions/runs/26878121272"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.1.2",
      "date": "2026-06-03T10:15:34.000Z",
      "commit": "11d3dce94e22cc9295f622f2d73ca6e49c87c079",
      "fileid": "3153ecdbd2d9873a58fb3de6365df43adff17fe2d8c38274b77c52988f544131",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/andrewwilson201/actions/runs/26878121272"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.1.2",
      "date": "2026-06-03T10:15:45.000Z",
      "commit": "11d3dce94e22cc9295f622f2d73ca6e49c87c079",
      "fileid": "a9cc553d2b70ebcec477990473ed2373ed4a7eeae2f002bb2fbe75de36a85b52",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/andrewwilson201/actions/runs/26878121272"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.1.2",
      "date": "2026-06-03T10:16:12.000Z",
      "commit": "11d3dce94e22cc9295f622f2d73ca6e49c87c079",
      "fileid": "ea1c2d2dea8a1939a1cefc64903203c5e1abef9c5461e1577194707e5acc34bc",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/andrewwilson201/actions/runs/26878121272"
    }
  ]
}