{
  "_id": "6a170499acfb0bcc41d91373",
  "Package": "mhn",
  "Type": "Package",
  "Title": "The Modified Half-Normal Distribution",
  "Version": "0.1.0",
  "Authors@R": "person(\"Tomotaka\", \"Momozaki\", role = c(\"aut\", \"cre\"),\nemail = \"momozaki.stat@gmail.com\")",
  "Description": "Provides density, distribution, quantile, and random\ngeneration functions for the Modified Half-Normal (MHN)\ndistribution, along with moments, mode, and the Fox-Wright Psi\nfunction used as the normalizing constant. The MHN distribution\narises as a conditional posterior in Bayesian MCMC and\ngeneralizes the half-normal, truncated normal, and square-root\ngamma distributions. Implements efficient sampling via the Sun,\nKong & Pal (2023) <doi:10.1080/03610926.2021.1934700>\nalgorithms and the Gao & Wang (2025)\n<doi:10.1080/03610918.2025.2524551> RTDR method.",
  "License": "MIT + file LICENSE",
  "Encoding": "UTF-8",
  "RoxygenNote": "7.3.3",
  "SystemRequirements": "C++17",
  "Config/testthat/edition": "3",
  "VignetteBuilder": "knitr",
  "URL": "https://github.com/t-momozaki/mhn,\nhttps://t-momozaki.github.io/mhn/",
  "BugReports": "https://github.com/t-momozaki/mhn/issues",
  "NeedsCompilation": "yes",
  "Packaged": {
    "Date": "2026-05-27 14:45:41 UTC",
    "User": "root"
  },
  "Author": "Tomotaka Momozaki [aut, cre]",
  "Maintainer": "Tomotaka Momozaki <momozaki.stat@gmail.com>",
  "Repository": "https://cran.r-universe.dev",
  "Date/Publication": "2026-05-27 08:30:02 UTC",
  "RemoteUrl": "https://github.com/cran/mhn",
  "RemoteRef": "HEAD",
  "RemoteSha": "042611f1184215d89e52ef100f24be7683c0f704",
  "MD5sum": "89c7742a74577a76375151d8709dd798",
  "_user": "cran",
  "_type": "src",
  "_file": "mhn_0.1.0.tar.gz",
  "_fileid": "3b91180685ac572f7570e9c71d7921e8da04cdf1e72fd0dfd4da45fbb5b7ee90",
  "_filesize": 599405,
  "_sha256": "3b91180685ac572f7570e9c71d7921e8da04cdf1e72fd0dfd4da45fbb5b7ee90",
  "_created": "2026-05-27T14:45:41.000Z",
  "_published": "2026-05-27T14:50:01.674Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 78102858730,
      "time": 167,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7243494696"
    },
    {
      "job": 78102858703,
      "time": 171,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7243496181"
    },
    {
      "job": 78102858773,
      "time": 190,
      "config": "linux-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7243503451"
    },
    {
      "job": 78102858892,
      "time": 160,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7243491667"
    },
    {
      "job": 78101988451,
      "time": 242,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7243425142"
    },
    {
      "job": 78102858721,
      "time": 158,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7243490603"
    }
  ],
  "_buildurl": "https://github.com/r-universe/cran/actions/runs/26517804320",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/cran/mhn",
  "_commit": {
    "id": "042611f1184215d89e52ef100f24be7683c0f704",
    "author": "Tomotaka Momozaki <momozaki.stat@gmail.com>",
    "committer": "cran-robot <csardi.gabor+cran@gmail.com>",
    "message": "version 0.1.0\n",
    "time": 1779870602
  },
  "_maintainer": {
    "name": "Tomotaka Momozaki",
    "email": "momozaki.stat@gmail.com",
    "login": "t-momozaki",
    "description": "",
    "uuid": 121425798
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.0.0",
      "role": "Depends"
    },
    {
      "package": "Rcpp",
      "role": "LinkingTo"
    },
    {
      "package": "BH",
      "version": ">= 1.78.0-0",
      "role": "LinkingTo"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "Rcpp",
      "version": ">= 1.0.7",
      "role": "Imports"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "bench",
      "role": "Suggests"
    },
    {
      "package": "Rmpfr",
      "role": "Suggests"
    }
  ],
  "_owner": "cran",
  "_selfowned": false,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-22",
      "n": 1
    }
  ],
  "_tags": [
    {
      "name": "0.1.0",
      "date": "2026-05-27"
    }
  ],
  "_stars": 0,
  "_contributors": [
    {
      "user": "t-momozaki",
      "count": 1,
      "uuid": 121425798
    }
  ],
  "_userbio": {
    "uuid": 6899542,
    "type": "organization",
    "name": "cran",
    "description": "Unofficial read-only mirror of all CRAN R packages"
  },
  "_downloads": {
    "count": 0,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/mhn"
  },
  "_devurl": "https://github.com/t-momozaki/mhn",
  "_pkgdown": "https://t-momozaki.github.io/mhn/",
  "_searchresults": 6,
  "_topics": [
    "cpp"
  ],
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/mhn.html",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_cranurl": false,
  "_releases": [
    {
      "version": "0.1.0",
      "date": "2026-05-27"
    }
  ],
  "_exports": [
    "dmhn",
    "mhn_kurtosis",
    "mhn_mean",
    "mhn_mode",
    "mhn_skewness",
    "mhn_var",
    "pmhn",
    "qmhn",
    "rmhn"
  ],
  "_help": [
    {
      "page": "dmhn",
      "title": "Density of the Modified Half-Normal Distribution",
      "topics": [
        "dmhn"
      ]
    },
    {
      "page": "mhn_kurtosis",
      "title": "Excess Kurtosis of the Modified Half-Normal Distribution",
      "topics": [
        "mhn_kurtosis"
      ]
    },
    {
      "page": "mhn_mean",
      "title": "Mean of the Modified Half-Normal Distribution",
      "topics": [
        "mhn_mean"
      ]
    },
    {
      "page": "mhn_mode",
      "title": "Mode of the Modified Half-Normal Distribution",
      "topics": [
        "mhn_mode"
      ]
    },
    {
      "page": "mhn_skewness",
      "title": "Skewness of the Modified Half-Normal Distribution",
      "topics": [
        "mhn_skewness"
      ]
    },
    {
      "page": "mhn_var",
      "title": "Variance of the Modified Half-Normal Distribution",
      "topics": [
        "mhn_var"
      ]
    },
    {
      "page": "pmhn",
      "title": "Distribution Function of the Modified Half-Normal Distribution",
      "topics": [
        "pmhn"
      ]
    },
    {
      "page": "qmhn",
      "title": "Quantile Function of the Modified Half-Normal Distribution",
      "topics": [
        "qmhn"
      ]
    },
    {
      "page": "rmhn",
      "title": "Random Generation from the Modified Half-Normal Distribution",
      "topics": [
        "rmhn"
      ]
    }
  ],
  "_readme": "https://github.com/cran/mhn/raw/HEAD/README.md",
  "_rundeps": [
    "BH",
    "Rcpp"
  ],
  "_sysdeps": [
    {
      "shlib": "libstdc++",
      "package": "libstdc++6",
      "source": "gcc",
      "version": "14.2.0-4ubuntu2~24.04.1",
      "name": "c++",
      "homepage": "http://gcc.gnu.org/",
      "description": "GNU Standard C++ Library v3"
    }
  ],
  "_vignettes": [
    {
      "source": "introduction.Rmd",
      "filename": "introduction.html",
      "title": "Introduction to the mhn Package",
      "engine": "knitr::rmarkdown",
      "headings": [
        "The MHN distribution",
        "Density: dmhn()",
        "Distribution function: pmhn()",
        "Quantile function: qmhn()",
        "Random generation: rmhn()",
        "Moments and mode",
        "Special cases",
        "Further reading",
        "References"
      ],
      "created": "2026-05-27 08:30:02",
      "modified": "2026-05-27 08:30:02",
      "commits": 1
    },
    {
      "source": "theory.Rmd",
      "filename": "theory.html",
      "title": "Theoretical background of the mhn package",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Scope",
        "The MHN($\\alpha$, $\\beta$, $\\gamma$) family",
        "Shape and moments",
        "The Fox–Wright $\\Psi$ normalising constant",
        "Errata in Sun et al. (2023)",
        "Sampling: Sun et al. (2023)",
        "Algorithm 1 — $\\gamma > 0$, $\\alpha \\geq 1$",
        "Algorithm 3 — $\\gamma \\leq 0$",
        "Why Algorithm 2 is not implemented",
        "Sampling: Gao & Wang (2025) RTDR",
        "$T_{c}$-concavity",
        "Working on the log axis when $\\alpha < 1$",
        "The four regions",
        "Why \"relaxed\"",
        "The rmhn(method = \"auto\") dispatch",
        "References"
      ],
      "created": "2026-05-27 08:30:02",
      "modified": "2026-05-27 08:30:02",
      "commits": 1
    }
  ],
  "_score": 3,
  "_indexed": false,
  "_nocasepkg": "mhn",
  "_universes": [
    "cran",
    "t-momozaki"
  ],
  "_indexurl": "https://t-momozaki.r-universe.dev/mhn",
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.0",
      "date": "2026-05-27T14:48:27.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "042611f1184215d89e52ef100f24be7683c0f704",
      "fileid": "8ec393942e0f054076e8a5b31c4875cac0c5010463201efce08db8e5e084334c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/26517804320"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.0",
      "date": "2026-05-27T14:48:30.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "042611f1184215d89e52ef100f24be7683c0f704",
      "fileid": "ff4d791d1c0cd6a9ba5103b8c57c010d497bf9ea0054c6ac452f11931c809cf0",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/26517804320"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.1.0",
      "date": "2026-05-27T14:48:46.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "042611f1184215d89e52ef100f24be7683c0f704",
      "fileid": "dcadabdbbcdb73162069aba602460d20273d77ff2642936d08b968d28e9b241e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/26517804320"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.1.0",
      "date": "2026-05-27T14:48:28.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "042611f1184215d89e52ef100f24be7683c0f704",
      "fileid": "4bfee5533414c2bcc52524819b9f4725b9075edc9b35582754dea05a2936d1a2",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/26517804320"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.1.0",
      "date": "2026-05-27T14:48:34.000Z",
      "arch": "emscripten",
      "commit": "042611f1184215d89e52ef100f24be7683c0f704",
      "fileid": "4e56ce92a675c99e383161499d394a6141b6df455b246ec3c6538ed26678e86e",
      "status": "success",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/26517804320"
    }
  ]
}