{
  "_id": "6a1f1dbbb401979e7341fc65",
  "Package": "RHISEA",
  "Type": "Package",
  "Title": "An R package for flexible and reproducible mixed-stock analysis\nin fisheries and ecology",
  "Version": "0.1.0",
  "Authors@R": "c(person(\"Sosthene\", \"A. V. Akia\",\nemail = \"sosthene.akia@dfo-mpo.gc.ca\",\nrole = c(\"aut\", \"cre\", \"cph\"),\ncomment = \"Fisheries and Oceans Canada, Gulf Fisheries Centre\"),\nperson(\"Alex\", \"Hanke\",\nemail = \"alex.hanke@dfo-mpo.gc.ca\",\nrole = c(\"aut\", \"cph\"),\ncomment = \"Fisheries and Oceans Canada, St. Andrews Biological Station\"))",
  "Maintainer": "Sosthene A. V. Akia <sosthene.akia@dfo-mpo.gc.ca>",
  "Description": "RHISEA modernizes Millar's HISEA (1987,1990) methodology\nfor reproducible mixed-stock analysis. RHISEA provides a\nflexible and reproducible framework for mixed-stock analysis in\nfisheries and ecology. Modernizes legacy workflows by\nintegrating modern statistical classifiers (LDA, RF, MCLUST,\nSVM, etc.) and estimators (EM, ML, COOK). Includes simulation\nframeworks, bootstrap resampling, and complete analysis\nworkflows for fisheries stock assessment and population\nstructure inference.",
  "License": "GPL-3",
  "Encoding": "UTF-8",
  "RoxygenNote": "7.3.3",
  "SystemRequirements": "Windows (for the included hisea.exe binary)",
  "VignetteBuilder": "knitr",
  "URL": "https://github.com/SostheneA/RHISEA,\nhttps://sosthenea.github.io/RHISEA/",
  "BugReports": "https://github.com/SostheneA/RHISEA/issues",
  "Config/testthat/edition": "3",
  "LazyData": "true",
  "Repository": "https://sosthenea.r-universe.dev",
  "Date/Publication": "2026-03-17 18:29:01 UTC",
  "RemoteUrl": "https://github.com/SostheneA/RHISEA",
  "RemoteRef": "HEAD",
  "RemoteSha": "7752da424d88030c7520ea3c42df5e17030d6b1b",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-05-16 08:36:15 UTC",
    "User": "root"
  },
  "Author": "Sosthene A. V. Akia [aut, cre, cph] (Fisheries and Oceans Canada, Gulf\nFisheries Centre),\nAlex Hanke [aut, cph] (Fisheries and Oceans Canada, St. Andrews\nBiological Station)",
  "MD5sum": "1b8cfccddcf0cb7df3c8c9d0fb7e957c",
  "_user": "sosthenea",
  "_type": "src",
  "_file": "RHISEA_0.1.0.tar.gz",
  "_fileid": "193277853110c18760fe610b5efe299edaa1724b18e21a1a0ad3d0245838c201",
  "_filesize": 1149250,
  "_sha256": "193277853110c18760fe610b5efe299edaa1724b18e21a1a0ad3d0245838c201",
  "_created": "2026-05-16T08:36:15.000Z",
  "_published": "2026-06-02T18:15:23.208Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 79140749859,
      "time": 175,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "NOTE",
      "artifact": "7032014615"
    },
    {
      "job": 79140749913,
      "time": 175,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "NOTE",
      "artifact": "7032014710"
    },
    {
      "job": 79140750030,
      "time": 202,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "NOTE",
      "artifact": "7032014360"
    },
    {
      "job": 79140750034,
      "time": 251,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "NOTE",
      "artifact": "7032018957"
    },
    {
      "job": 79140749183,
      "time": 207,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7031995980"
    },
    {
      "job": 79140749049,
      "time": 134,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7366160241"
    },
    {
      "job": 79140749711,
      "time": 135,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "NOTE",
      "artifact": "7032010470"
    },
    {
      "job": 79140750459,
      "time": 119,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "NOTE",
      "artifact": "7032008816"
    },
    {
      "job": 79140749953,
      "time": 122,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "NOTE",
      "artifact": "7032009067"
    }
  ],
  "_buildurl": "https://github.com/r-universe/sosthenea/actions/runs/25957409927",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/SostheneA/RHISEA",
  "_commit": {
    "id": "7752da424d88030c7520ea3c42df5e17030d6b1b",
    "author": "Sosthene AKIA <sosthene.akia@dfo-mpo.gc.ca>",
    "committer": "Sosthene AKIA <sosthene.akia@dfo-mpo.gc.ca>",
    "message": "docs\n",
    "time": 1773772141
  },
  "_maintainer": {
    "name": "Sosthene A. V. Akia",
    "email": "sosthene.akia@dfo-mpo.gc.ca",
    "login": "sosthenea",
    "uuid": 226096587
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.5.0",
      "role": "Depends"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "utils",
      "role": "Imports"
    },
    {
      "package": "MASS",
      "role": "Imports"
    },
    {
      "package": "data.table",
      "role": "Imports"
    },
    {
      "package": "ggplot2",
      "role": "Imports"
    },
    {
      "package": "tidyr",
      "role": "Imports"
    },
    {
      "package": "caret",
      "role": "Imports"
    },
    {
      "package": "xgboost",
      "role": "Imports"
    },
    {
      "package": "randomForest",
      "role": "Imports"
    },
    {
      "package": "nnet",
      "role": "Imports"
    },
    {
      "package": "e1071",
      "role": "Imports"
    },
    {
      "package": "mclust",
      "role": "Imports"
    },
    {
      "package": "class",
      "role": "Imports"
    },
    {
      "package": "kknn",
      "role": "Imports"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    },
    {
      "package": "roxygen2",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "covr",
      "role": "Suggests"
    },
    {
      "package": "readr",
      "role": "Suggests"
    },
    {
      "package": "dplyr",
      "role": "Suggests"
    }
  ],
  "_owner": "sosthenea",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2025-33",
      "n": 13
    },
    {
      "week": "2025-34",
      "n": 10
    },
    {
      "week": "2025-44",
      "n": 6
    },
    {
      "week": "2025-50",
      "n": 3
    },
    {
      "week": "2026-12",
      "n": 21
    }
  ],
  "_tags": [],
  "_stars": 0,
  "_contributors": [
    {
      "user": "sosthenea",
      "count": 65,
      "uuid": 226096587
    },
    {
      "user": "akiasosthene",
      "count": 1,
      "uuid": 110844164
    }
  ],
  "_userbio": {
    "uuid": 226096587,
    "type": "user",
    "name": "SostheneA"
  },
  "_downloads": {
    "count": 0,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/RHISEA"
  },
  "_devurl": "https://github.com/sosthenea/rhisea",
  "_pkgdown": "https://sosthenea.github.io/RHISEA/",
  "_searchresults": 0,
  "_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/RHISEA.html",
    "manual.pdf"
  ],
  "_cranurl": false,
  "_exports": [
    "accel_em_algorithm",
    "classify_samples",
    "compute_cook_estimators",
    "compute_ldf_coefficients",
    "create_hisea_summary_report",
    "em_algorithm",
    "estimate_millar_theta4",
    "estimate_ml_theta5",
    "get_phi",
    "ordvec",
    "plot_hisea_theta",
    "print_hisea_summary",
    "process_hisea_input",
    "read_baseline",
    "read_mixture",
    "run_hisea_all",
    "run_hisea_estimates",
    "simulate_mixture",
    "write_mix_from_dataframe",
    "write_std_from_dataframe"
  ],
  "_datasets": [
    {
      "name": "baseline",
      "title": "Baseline Data for RHISEA",
      "object": "baseline",
      "class": [
        "data.table",
        "data.frame"
      ],
      "fields": [
        "d13c",
        "d18o",
        "population"
      ],
      "rows": 300,
      "table": true,
      "tojson": true
    },
    {
      "name": "mixture",
      "title": "Mixture dataset for RHISEA examples",
      "object": "mixture",
      "class": [
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "d13c_ukn",
        "d18o_ukn"
      ],
      "rows": 4500,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "accel_em_algorithm",
      "title": "Accelerated Expectation-Maximization (EM) Algorithm",
      "topics": [
        "accel_em_algorithm"
      ]
    },
    {
      "page": "baseline",
      "title": "Baseline Data for RHISEA",
      "topics": [
        "baseline"
      ]
    },
    {
      "page": "classify_samples",
      "title": "Classify Samples Using LDF Coefficients",
      "topics": [
        "classify_samples"
      ]
    },
    {
      "page": "compute_cook_estimators",
      "title": "Compute Cook Estimators for Stock Proportions",
      "topics": [
        "compute_cook_estimators"
      ]
    },
    {
      "page": "compute_ldf_coefficients",
      "title": "Compute Linear Discriminant Function (LDF) Coefficients",
      "topics": [
        "compute_ldf_coefficients"
      ]
    },
    {
      "page": "create_hisea_summary_report",
      "title": "Create HISEA Summary Report",
      "topics": [
        "create_hisea_summary_report"
      ]
    },
    {
      "page": "em_algorithm",
      "title": "Standard Expectation-Maximization (EM) Algorithm for Stock Proportions",
      "topics": [
        "em_algorithm"
      ]
    },
    {
      "page": "estimate_millar_theta4",
      "title": "Estimate Millar Theta4 Parameter",
      "topics": [
        "estimate_millar_theta4"
      ]
    },
    {
      "page": "estimate_ml_theta5",
      "title": "Estimate Stock Composition Using Direct Maximum Likelihood (Theta5)",
      "topics": [
        "estimate_ml_theta5"
      ]
    },
    {
      "page": "get_phi",
      "title": "Get Phi Matrix",
      "topics": [
        "get_phi"
      ]
    },
    {
      "page": "mixture",
      "title": "Mixture dataset for RHISEA examples",
      "topics": [
        "mixture"
      ]
    },
    {
      "page": "ordvec",
      "title": "Generate Ordered Random Values (Order Statistics based)",
      "topics": [
        "ordvec"
      ]
    },
    {
      "page": "plot_hisea_theta",
      "title": "Plot HISEA theta estimates with error bars utils::globalVariables(c(\"Stock\", \"Mean\", \"Estimator\", \"SD\", \"ActualValue\"))",
      "topics": [
        "plot_hisea_theta"
      ]
    },
    {
      "page": "print_hisea_summary",
      "title": "Print HISEA Summary Report to Console and/or File",
      "topics": [
        "print_hisea_summary"
      ]
    },
    {
      "page": "read_baseline",
      "title": "Read HISEA Baseline File",
      "topics": [
        "read_baseline"
      ]
    },
    {
      "page": "read_mixture",
      "title": "Read HISEA Mixture File",
      "topics": [
        "read_mixture"
      ]
    },
    {
      "page": "run_hisea_all",
      "title": "Run HISEA Mixed Stock Analysis",
      "topics": [
        "run_hisea_all"
      ]
    },
    {
      "page": "run_hisea_estimates",
      "title": "Run HISEA Estimations Only",
      "topics": [
        "run_hisea_estimates"
      ]
    },
    {
      "page": "simulate_mixture",
      "title": "Simulate a Mixed Fishery Sample from Known Stock Proportions",
      "topics": [
        "simulate_mixture"
      ]
    }
  ],
  "_pkglogo": "https://github.com/SostheneA/RHISEA/raw/HEAD/man/figures/logo.png",
  "_readme": "https://github.com/SostheneA/RHISEA/raw/HEAD/README.md",
  "_rundeps": [
    "caret",
    "class",
    "cli",
    "clock",
    "codetools",
    "cpp11",
    "data.table",
    "diagram",
    "digest",
    "dplyr",
    "e1071",
    "farver",
    "foreach",
    "future",
    "future.apply",
    "generics",
    "ggplot2",
    "globals",
    "glue",
    "gower",
    "gtable",
    "hardhat",
    "igraph",
    "ipred",
    "isoband",
    "iterators",
    "jsonlite",
    "KernSmooth",
    "kknn",
    "labeling",
    "lattice",
    "lava",
    "lifecycle",
    "listenv",
    "lubridate",
    "magrittr",
    "MASS",
    "Matrix",
    "mclust",
    "ModelMetrics",
    "nlme",
    "nnet",
    "numDeriv",
    "parallelly",
    "pillar",
    "pkgconfig",
    "plyr",
    "pROC",
    "prodlim",
    "progressr",
    "proxy",
    "purrr",
    "R6",
    "randomForest",
    "RColorBrewer",
    "Rcpp",
    "recipes",
    "reshape2",
    "rlang",
    "rpart",
    "S7",
    "scales",
    "shape",
    "sparsevctrs",
    "SQUAREM",
    "stringi",
    "stringr",
    "survival",
    "tibble",
    "tidyr",
    "tidyselect",
    "timechange",
    "timeDate",
    "tzdb",
    "utf8",
    "vctrs",
    "viridisLite",
    "withr",
    "xgboost"
  ],
  "_vignettes": [
    {
      "source": "Multiple_Classifiers.Rmd",
      "filename": "Multiple_Classifiers.html",
      "title": "Comparing built-in classification methods in RHISEA for mixed-stock analysis",
      "author": "Sosthene Akia, Alex Hanke",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Introduction",
        "Setup and Required Libraries",
        "Load Baseline and Mixture Data",
        "Define Analysis Parameters and Output Setup",
        "Supported Classifiers to Evaluate",
        "Run Automated Classifier Comparison",
        "Summarize and Visualize Classifier Performance",
        "Plot Accuracy and Kappa for Each Model",
        "Conclusion",
        "Appendix: Additional Visualizations and Statistics"
      ],
      "created": "2025-08-13 17:00:13",
      "modified": "2026-03-17 02:05:44",
      "commits": 8
    },
    {
      "source": "complex_mixed_stocks.Rmd",
      "filename": "complex_mixed_stocks.html",
      "title": "Analyzing complex mixed-stock fisheries with 20 stocks",
      "author": "Sosthene Akia, Alex Hanke",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Introduction",
        "Data Simulation of Classification Outputs",
        "Running Classic HISEA Estimators with run_hisea_estimates()",
        "Displaying and Plotting Results",
        "Conclusion"
      ],
      "created": "2025-10-31 09:02:30",
      "modified": "2026-03-17 01:27:47",
      "commits": 3
    },
    {
      "source": "Custom_Classification_Models.Rmd",
      "filename": "Custom_Classification_Models.html",
      "title": "Applying HISEA estimators to custom classification models with run_hisea_estimates",
      "author": "Sosthene Akia, Alex Hanke",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Introduction",
        "Purpose of run_hisea_estimates()",
        "What you need to provide",
        "How it works internally",
        "1. Linear Discriminant Analysis (LDA)",
        "2. Random Forest (RF)",
        "3. Conditional Inference Tree (CTREE)",
        "Conclusion"
      ],
      "created": "2025-08-13 17:00:13",
      "modified": "2026-03-17 01:27:47",
      "commits": 7
    },
    {
      "source": "Estimate_genetics_data.Rmd",
      "filename": "Estimate_genetics_data.html",
      "title": "Genetic assignment to Mixed-Stock Analysis with RHISEA",
      "author": "Sosthene Akia, Alex Hanke",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Overview",
        "Data preparation and import",
        "Assignment cross-validation",
        "Assignment of unknown individuals",
        "From assignment matrices to RHISEA inputs",
        "Mixed-stock estimation with RHISEA"
      ],
      "created": "2025-12-09 14:14:46",
      "modified": "2026-03-17 01:27:47",
      "commits": 3
    },
    {
      "source": "RHISEA_comprehensive_Guide.Rmd",
      "filename": "RHISEA_comprehensive_Guide.html",
      "title": "Comprehensive Guide to the RHISEA Package for Mixed-Stock Analysis",
      "author": "Sosthene Akia, Alex Hanke",
      "engine": "knitr::rmarkdown",
      "headings": [
        "1) Data Preparation",
        "2) Using run_hisea_all() with Built-in Models",
        "3) Testing Parameters: phi_method and type in RF Model",
        "4) Using run_hisea_estimates() with External Models and Comparison",
        "5) Tuning Built-in Random Forest Models with run_hisea_all()",
        "6) Tuning External Random Forest Models with run_hisea_estimates() and Comparison"
      ],
      "created": "2025-10-31 09:38:59",
      "modified": "2026-03-17 01:27:47",
      "commits": 3
    },
    {
      "source": "RHISEA_vs_Fortran.Rmd",
      "filename": "RHISEA_vs_Fortran.html",
      "title": "Verifying compatibility: RHISEA (R) vs FORTRAN HISEA",
      "author": "Sosthene Akia, Alex Hanke",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Introduction",
        "1. Load baseline and mixture data from installed package",
        "2. Define global parameters for simulation and analysis",
        "3. Utility functions for reading/writing HISEA files and Fortran outputs",
        "4. Simulation setup and results containers",
        "5. Main simulation loop",
        "6. Aggregate and summarize results",
        "7. Export results to Excel",
        "8. Visualization: Compare R vs Fortran estimators",
        "9. Visualization: Compare R_MASS vs Fortran estimators",
        "10. Boxplot for all estimators and methods",
        "11. Diagnostics: Alert if large divergence detected",
        "Conclusion"
      ],
      "created": "2025-08-19 02:58:02",
      "modified": "2026-03-17 01:27:47",
      "commits": 3
    },
    {
      "source": "RHISEA_data_type.Rmd",
      "filename": "RHISEA_data_type.html",
      "title": "Two input paths in RHISEA: run_hisea_all with HISEA-style files or Dataframes",
      "author": "Sosthene Akia, Alex Hanke",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Introduction",
        "Required packages",
        "Load the data",
        "Write HISEA formatted files (optional)",
        "Analysis parameters",
        "1) Run with Data frame inputs",
        "2) Run with HISEA-formatted files",
        "Compare results: table + plot",
        "Visualize bootstrap distributions (if available)",
        "Interpretation & Reasoning (how to read results)"
      ],
      "created": "2025-08-19 02:58:02",
      "modified": "2026-03-17 02:05:44",
      "commits": 4
    }
  ],
  "_score": 4.243038048686294,
  "_indexed": true,
  "_nocasepkg": "rhisea",
  "_universes": [
    "sosthenea"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.0",
      "date": "2026-05-16T08:38:37.000Z",
      "distro": "noble",
      "commit": "7752da424d88030c7520ea3c42df5e17030d6b1b",
      "fileid": "0d71fd855b348587600d73b89f079fbb67ea0de20449b40601fd432a33ab74ce",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/sosthenea/actions/runs/25957409927"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.1.0",
      "date": "2026-05-16T08:38:39.000Z",
      "distro": "noble",
      "commit": "7752da424d88030c7520ea3c42df5e17030d6b1b",
      "fileid": "d450f5dcb1785db05c07946ccca9a9aa01e346cdfa41f7184cc5665bcb73cbbd",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/sosthenea/actions/runs/25957409927"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.1.0",
      "date": "2026-05-16T08:38:47.000Z",
      "commit": "7752da424d88030c7520ea3c42df5e17030d6b1b",
      "fileid": "5532773a8ffbc7956bb9ae2c769d7ba060dcec603d6e2a9fe93af2e097857217",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/sosthenea/actions/runs/25957409927"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.1.0",
      "date": "2026-05-16T08:39:06.000Z",
      "commit": "7752da424d88030c7520ea3c42df5e17030d6b1b",
      "fileid": "9520a102308fd03631eeb6ebf6755de6813ca055e68e1648f34080bfc9728afe",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/sosthenea/actions/runs/25957409927"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.1.0",
      "date": "2026-05-16T08:37:47.000Z",
      "commit": "7752da424d88030c7520ea3c42df5e17030d6b1b",
      "fileid": "fe73c1d9a0c446970e785df7ab7f3793e942c7f356dab45b94865fd233f1d789",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/sosthenea/actions/runs/25957409927"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.1.0",
      "date": "2026-05-16T08:37:42.000Z",
      "commit": "7752da424d88030c7520ea3c42df5e17030d6b1b",
      "fileid": "f0fb02e1a3ae1e7f8c794e47e5db60085c99f760ea1ae7aacb7b99476eaf37a7",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/sosthenea/actions/runs/25957409927"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.1.0",
      "date": "2026-05-16T08:37:34.000Z",
      "commit": "7752da424d88030c7520ea3c42df5e17030d6b1b",
      "fileid": "0a11a65381b8b6a78a22487b54b2adb8d25b4deaa22968ceab205440406a9245",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/sosthenea/actions/runs/25957409927"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.1.0",
      "date": "2026-06-02T18:14:55.000Z",
      "commit": "7752da424d88030c7520ea3c42df5e17030d6b1b",
      "fileid": "4f474ef878a1116103377a9bc93a83c6deb58e9ca43a01bf28a8a6576cd326aa",
      "status": "success",
      "buildurl": "https://github.com/r-universe/sosthenea/actions/runs/25957409927"
    }
  ]
}