{
  "_id": "6a103aabacfb0bcc41c9b430",
  "Package": "mlmodels",
  "Title": "Maximum Likelihood Models and Tools for Estimation, Prediction,\nand Testing",
  "Version": "0.1.2",
  "Authors@R": "person(given = \"Alfonso\",\nfamily = \"Sanchez-Penalver\",\nemail = \"oneiros_spain@yahoo.com\",\nrole = c(\"aut\", \"cre\"),\ncomment = c(ORCID = \"0000-0001-8491-4632\"))",
  "Description": "Provides a collection of maximum likelihood estimators\nwith a consistent S3 interface. Supported models include\nGaussian (linear and log-normal), logit, probit, Poisson,\nnegative binomial (NB1 and NB2), gamma, and beta regression. A\ndistinctive feature is flexible modeling of the scale parameter\n(variance, dispersion, precision, or shape) alongside the\nlocation/mean parameters. The package offers unified predict()\nmethods, multiple variance-covariance estimators (observed\ninformation, outer product of gradients, robust/Huber-White,\ncluster-robust, bootstrap, jackknife), and a full suite of\nhypothesis tests (Wald, likelihood ratio, information matrix,\nVuong, overdispersion, and goodness-of-fit). It is fully\ncompatible with 'marginaleffects' for post-estimation analysis.\nMethods implemented include Cameron and Trivedi (1990)\n<doi:10.1016/0304-4076(90)90014-K>, for Poisson overdispersion\ntesting, Manjon and Martinez (2014)\n<doi:10.1177/1536867X1401400406>, for goodness-of-fit testing\nof count data models, Vuong (1989) <doi:10.2307/1912557>, for\nnon-nested likelihood ratio testing, and White (1982)\n<doi:10.2307/1912526>, for information matrix tests.",
  "License": "MIT + file LICENSE",
  "Encoding": "UTF-8",
  "LazyData": "true",
  "Roxygen": "list(markdown = TRUE)",
  "RoxygenNote": "7.3.3",
  "VignetteBuilder": "knitr",
  "Config/testthat/edition": "3",
  "Config/pkgdown/logo": "man/figures/logo.png",
  "URL": "https://alfisankipan.github.io/mlmodels/",
  "BugReports": "https://github.com/alfisankipan/mlmodels/issues",
  "Repository": "https://alfisankipan.r-universe.dev",
  "Date/Publication": "2026-05-11 21:06:28 UTC",
  "RemoteUrl": "https://github.com/alfisankipan/mlmodels",
  "RemoteRef": "HEAD",
  "RemoteSha": "a4c5abdc2f00e7c0c4edd35400ae16b476ea499c",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-05-11 22:06:45 UTC",
    "User": "root"
  },
  "Author": "Alfonso Sanchez-Penalver [aut, cre] (ORCID:\n<https://orcid.org/0000-0001-8491-4632>)",
  "Maintainer": "Alfonso Sanchez-Penalver <oneiros_spain@yahoo.com>",
  "MD5sum": "166ef40b26937ea19481f5a136011b12",
  "_user": "alfisankipan",
  "_type": "src",
  "_file": "mlmodels_0.1.2.tar.gz",
  "_fileid": "130859d475970c50a0bd80abea1a43b7a59ca47f37de16aa7a453a6c2fff94d9",
  "_filesize": 997043,
  "_sha256": "130859d475970c50a0bd80abea1a43b7a59ca47f37de16aa7a453a6c2fff94d9",
  "_created": "2026-05-11T22:06:45.000Z",
  "_published": "2026-05-22T11:14:51.589Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 77368498344,
      "time": 203,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "ERROR",
      "artifact": "6931052496"
    },
    {
      "job": 77368498458,
      "time": 201,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "ERROR",
      "artifact": "6931051973"
    },
    {
      "job": 77368498228,
      "time": 125,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "ERROR",
      "artifact": "6931029428"
    },
    {
      "job": 77368498247,
      "time": 127,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "ERROR",
      "artifact": "6931029655"
    },
    {
      "job": 77368498076,
      "time": 224,
      "config": "source",
      "r": "4.6.0",
      "check": "ERROR",
      "artifact": "6930994652"
    },
    {
      "job": 77368497683,
      "time": 109,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7159154594"
    },
    {
      "job": 77368498031,
      "time": 176,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "ERROR",
      "artifact": "6931043403"
    },
    {
      "job": 77368499138,
      "time": 169,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "ERROR",
      "artifact": "6931041870"
    },
    {
      "job": 77368498801,
      "time": 186,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "ERROR",
      "artifact": "6931045805"
    }
  ],
  "_buildurl": "https://github.com/r-universe/alfisankipan/actions/runs/25699963746",
  "_status": "failure",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/alfisankipan/mlmodels",
  "_commit": {
    "id": "a4c5abdc2f00e7c0c4edd35400ae16b476ea499c",
    "author": "Alfonso Sanchez-Penalver <oneiros_spain@yahoo.com>",
    "committer": "Alfonso Sanchez-Penalver <oneiros_spain@yahoo.com>",
    "message": "fitted values for truncated linear model and banners for readme.\n",
    "time": 1778533588
  },
  "_maintainer": {
    "name": "Alfonso Sanchez-Penalver",
    "email": "oneiros_spain@yahoo.com",
    "login": "alfisankipan",
    "uuid": 85194589,
    "orcid": "0000-0001-8491-4632"
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.1.0",
      "role": "Depends"
    },
    {
      "package": "cli",
      "role": "Imports"
    },
    {
      "package": "hardhat",
      "role": "Imports"
    },
    {
      "package": "insight",
      "role": "Imports"
    },
    {
      "package": "marginaleffects",
      "role": "Imports"
    },
    {
      "package": "MASS",
      "role": "Imports"
    },
    {
      "package": "matrixcalc",
      "role": "Imports"
    },
    {
      "package": "maxLik",
      "role": "Imports"
    },
    {
      "package": "rlang",
      "role": "Imports"
    },
    {
      "package": "tibble",
      "role": "Imports"
    },
    {
      "package": "boot",
      "role": "Suggests"
    },
    {
      "package": "dplyr",
      "role": "Suggests"
    },
    {
      "package": "e1071",
      "role": "Suggests"
    },
    {
      "package": "ggplot2",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "patchwork",
      "role": "Suggests"
    },
    {
      "package": "pkgdown",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    },
    {
      "package": "wooldridge",
      "role": "Suggests"
    }
  ],
  "_owner": "alfisankipan",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-14",
      "n": 60
    },
    {
      "week": "2026-15",
      "n": 21
    },
    {
      "week": "2026-16",
      "n": 20
    },
    {
      "week": "2026-17",
      "n": 35
    },
    {
      "week": "2026-18",
      "n": 13
    },
    {
      "week": "2026-19",
      "n": 11
    },
    {
      "week": "2026-20",
      "n": 2
    }
  ],
  "_tags": [
    {
      "name": "v0.1.0",
      "date": "2026-04-29"
    }
  ],
  "_stars": 0,
  "_contributors": [
    {
      "user": "alfisankipan",
      "count": 193,
      "uuid": 85194589
    }
  ],
  "_userbio": {
    "uuid": 85194589,
    "type": "user",
    "name": "alfisankipan"
  },
  "_downloads": {
    "count": 34,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/mlmodels"
  },
  "_devurl": "https://github.com/alfisankipan/mlmodels",
  "_pkgdown": "https://alfisankipan.github.io/mlmodels/",
  "_searchresults": 0,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/mlmodels.html",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/alfisankipan/mlmodels",
  "_realowner": "alfisankipan",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.1.2",
      "date": "2026-05-08"
    }
  ],
  "_exports": [
    "%||%",
    "clarketest",
    "find_variables.mlmodel",
    "get_modeldata.mlmodel",
    "GOFtest",
    "gradientObs",
    "hessianObs",
    "IMtest",
    "loglikeObs",
    "lrtest",
    "ml_beta",
    "ml_gamma",
    "ml_lm",
    "ml_logit",
    "ml_negbin",
    "ml_poisson",
    "ml_probit",
    "ml_trunc_lm",
    "OVDtest",
    "se",
    "vuongtest",
    "waldtest"
  ],
  "_datasets": [
    {
      "name": "docvis",
      "title": "U.S. Medical Expenditure Panel Survey",
      "object": "docvis",
      "class": [
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "offer",
        "ssiratio",
        "age",
        "educyr",
        "physician",
        "nonphysician",
        "medicaid",
        "private",
        "female",
        "phylim",
        "actlim",
        "income",
        "totchr",
        "insured",
        "age2",
        "linc",
        "bh",
        "docvis",
        "ldocvis",
        "ldocvisa",
        "one",
        "docbin"
      ],
      "rows": 3677,
      "table": true,
      "tojson": true
    },
    {
      "name": "mroz",
      "title": "University of Michigan Panel Study of Income Dynamics (PSID)",
      "object": "mroz",
      "class": [
        "data.frame"
      ],
      "fields": [
        "inlf",
        "hours",
        "kidslt6",
        "kidsge6",
        "age",
        "educ",
        "wage",
        "repwage",
        "hushrs",
        "husage",
        "huseduc",
        "huswage",
        "faminc",
        "mtr",
        "motheduc",
        "fatheduc",
        "unem",
        "city",
        "exper",
        "nwifeinc",
        "lwage",
        "expersq"
      ],
      "rows": 753,
      "table": true,
      "tojson": true
    },
    {
      "name": "pw401k",
      "title": "401(k) Participation Rates",
      "object": "pw401k",
      "class": [
        "spec_tbl_df",
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "prate",
        "mrate",
        "totemp",
        "age",
        "sole"
      ],
      "rows": 4734,
      "table": true,
      "tojson": true
    },
    {
      "name": "smoke",
      "title": "1979 National Health Interview Survey",
      "object": "smoke",
      "class": [
        "data.frame"
      ],
      "fields": [
        "educ",
        "cigpric",
        "white",
        "age",
        "income",
        "cigs",
        "restaurn",
        "lincome",
        "agesq",
        "lcigpric"
      ],
      "rows": 807,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "AIC.mlmodel",
      "title": "Extract AIC from mlmodel objects",
      "topics": [
        "AIC.mlmodel",
        "AIC.summary.mlmodel"
      ]
    },
    {
      "page": "BIC.mlmodel",
      "title": "Extract BIC from mlmodel objects",
      "topics": [
        "BIC.mlmodel",
        "BIC.summary.mlmodel"
      ]
    },
    {
      "page": "clarketest",
      "title": "Clarke test for non-nested model comparison",
      "topics": [
        "clarketest",
        "clarketest.mlmodel"
      ]
    },
    {
      "page": "coef.mlmodel",
      "title": "Extract Model Coefficients",
      "topics": [
        "coef.mlmodel"
      ]
    },
    {
      "page": "confint.mlmodel",
      "title": "Confidence Intervals for mlmodel Coefficients",
      "topics": [
        "confint.mlmodel"
      ]
    },
    {
      "page": "docvis",
      "title": "U.S. Medical Expenditure Panel Survey",
      "topics": [
        "docvis"
      ]
    },
    {
      "page": "find_predictors.mlmodel",
      "title": "Extract the predictors used in the model (for insight/marginaleffects compatibility)",
      "topics": [
        "find_predictors.mlmodel"
      ]
    },
    {
      "page": "find_variables.mlmodel",
      "title": "Extract the variables used in the model (for insight/marginaleffects compatibility)",
      "topics": [
        "find_variables.mlmodel"
      ]
    },
    {
      "page": "fitted.mlmodel",
      "title": "Extract Fitted Values from mlmodel",
      "topics": [
        "fitted.mlmodel",
        "fitted.values.mlmodel"
      ]
    },
    {
      "page": "formula.mlmodel",
      "title": "Extract value formula from mlmodel objects",
      "topics": [
        "formula.mlmodel"
      ]
    },
    {
      "page": "get_data.mlmodel",
      "title": "Extract data used to fit the model (for insight/marginaleffects compatibility)",
      "topics": [
        "get_data.mlmodel",
        "get_modeldata.mlmodel"
      ]
    },
    {
      "page": "GOFtest",
      "title": "Goodness-of-Fit Test for Count Models",
      "topics": [
        "GOFtest",
        "GOFtest.mlmodel"
      ]
    },
    {
      "page": "gradientObs",
      "title": "Gradient (Score) by Observation",
      "topics": [
        "gradientObs",
        "gradientObs.mlmodel"
      ]
    },
    {
      "page": "hessianObs",
      "title": "Hessian by Observation",
      "topics": [
        "hessianObs",
        "hessianObs.mlmodel"
      ]
    },
    {
      "page": "IMtest",
      "title": "Information Matrix Test for Model Misspecification",
      "topics": [
        "IMtest",
        "IMtest.mlmodel"
      ]
    },
    {
      "page": "logLik.mlmodel",
      "title": "Extract Log-Likelihood from mlmodel objects",
      "topics": [
        "logLik.mlmodel",
        "logLik.summary.mlmodel"
      ]
    },
    {
      "page": "loglikeObs",
      "title": "Log-Likelihood by Observation",
      "topics": [
        "loglikeObs",
        "loglikeObs.mlmodel"
      ]
    },
    {
      "page": "lrtest",
      "title": "Likelihood Ratio Test for Nested mlmodel Objects",
      "topics": [
        "lrtest",
        "lrtest.mlmodel"
      ]
    },
    {
      "page": "ml_beta",
      "title": "Fit Beta Model by Maximum Likelihood",
      "topics": [
        "ml_beta"
      ]
    },
    {
      "page": "ml_gamma",
      "title": "Fit Gamma Model by Maximum Likelihood",
      "topics": [
        "ml_gamma"
      ]
    },
    {
      "page": "ml_lm",
      "title": "Fit linear model by Maximum Likelihood",
      "topics": [
        "ml_lm"
      ]
    },
    {
      "page": "ml_logit",
      "title": "Fit Binary Logit Model by Maximum Likelihood",
      "topics": [
        "ml_logit"
      ]
    },
    {
      "page": "ml_negbin",
      "title": "Fit negative binomial models by Maximum Likelihood",
      "topics": [
        "ml_negbin"
      ]
    },
    {
      "page": "ml_poisson",
      "title": "Fit Poisson model by Maximum Likelihood",
      "topics": [
        "ml_poisson"
      ]
    },
    {
      "page": "ml_probit",
      "title": "Fit Binary Probit Model by Maximum Likelihood",
      "topics": [
        "ml_probit"
      ]
    },
    {
      "page": "ml_trunc_lm",
      "title": "Fit Truncated (log)normal Model by Maximum Likelihood",
      "topics": [
        "ml_trunc_lm"
      ]
    },
    {
      "page": "mroz",
      "title": "University of Michigan Panel Study of Income Dynamics (PSID)",
      "topics": [
        "mroz"
      ]
    },
    {
      "page": "nobs.mlmodel",
      "title": "Extract the Number of Observations from an mlmodel",
      "topics": [
        "nobs.mlmodel"
      ]
    },
    {
      "page": "null-default",
      "title": "Null default operator",
      "topics": [
        "%||%",
        "null-default"
      ]
    },
    {
      "page": "OVDtest",
      "title": "Overdispersion Tests for Count Models",
      "topics": [
        "OVDtest"
      ]
    },
    {
      "page": "predict.mlmodel",
      "title": "Predictions for mlmodel models",
      "topics": [
        "predict.mlmodel",
        "predict.ml_beta",
        "predict.ml_gamma",
        "predict.ml_lm",
        "predict.ml_logit",
        "predict.ml_negbin",
        "predict.ml_poisson",
        "predict.ml_probit"
      ]
    },
    {
      "page": "pw401k",
      "title": "401(k) Participation Rates",
      "topics": [
        "pw401k"
      ]
    },
    {
      "page": "residuals.mlmodel",
      "title": "Extract Model Residuals",
      "topics": [
        "residuals.mlmodel"
      ]
    },
    {
      "page": "se",
      "title": "Extract Standard Errors from mlmodel Objects",
      "topics": [
        "se",
        "se.mlmodel"
      ]
    },
    {
      "page": "smoke",
      "title": "1979 National Health Interview Survey",
      "topics": [
        "smoke"
      ]
    },
    {
      "page": "summary.mlmodel",
      "title": "Summary for mlmodel objects",
      "topics": [
        "summary.mlmodel",
        "summary.ml_beta",
        "summary.ml_gamma",
        "summary.ml_lm",
        "summary.ml_logit",
        "summary.ml_negbin",
        "summary.ml_poisson",
        "summary.ml_probit"
      ]
    },
    {
      "page": "update.mlmodel",
      "title": "Update an mlmodel Call",
      "topics": [
        "update.mlmodel",
        "update.ml_poisson"
      ]
    },
    {
      "page": "vcov.mlmodel",
      "title": "Variance-Covariance Matrix for mlmodel Objects",
      "topics": [
        "vcov.mlmodel"
      ]
    },
    {
      "page": "vuongtest",
      "title": "Vuong's Test for Non-Nested Models",
      "topics": [
        "vuongtest",
        "vuongtest.mlmodel"
      ]
    },
    {
      "page": "waldtest",
      "title": "Wald Test for Linear Restrictions",
      "topics": [
        "waldtest",
        "waldtest.mlmodel"
      ]
    }
  ],
  "_pkglogo": "https://github.com/alfisankipan/mlmodels/raw/HEAD/man/figures/logo.png",
  "_readme": "https://github.com/alfisankipan/mlmodels/raw/HEAD/README.md",
  "_rundeps": [
    "backports",
    "checkmate",
    "cli",
    "data.table",
    "digest",
    "Formula",
    "generics",
    "glue",
    "hardhat",
    "insight",
    "lattice",
    "lifecycle",
    "magrittr",
    "marginaleffects",
    "MASS",
    "matrixcalc",
    "maxLik",
    "miscTools",
    "pillar",
    "pkgconfig",
    "rlang",
    "sandwich",
    "sparsevctrs",
    "tibble",
    "utf8",
    "vctrs",
    "zoo"
  ],
  "_score": 3.5440680443502757,
  "_indexed": true,
  "_nocasepkg": "mlmodels",
  "_universes": [
    "alfisankipan"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.2",
      "date": "2026-05-11T22:09:14.000Z",
      "distro": "noble",
      "commit": "a4c5abdc2f00e7c0c4edd35400ae16b476ea499c",
      "fileid": "bcb6702ae8fda7816b50bed23671c02abd28c2fe9d51a219484ef6deedc0eedc",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/alfisankipan/actions/runs/25699963746"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.1.2",
      "date": "2026-05-11T22:09:13.000Z",
      "distro": "noble",
      "commit": "a4c5abdc2f00e7c0c4edd35400ae16b476ea499c",
      "fileid": "2122144c05bb5be509f7fc58ba5b2c49cf5b46a283093780036c30cce698cf24",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/alfisankipan/actions/runs/25699963746"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.1.2",
      "date": "2026-05-11T22:08:24.000Z",
      "commit": "a4c5abdc2f00e7c0c4edd35400ae16b476ea499c",
      "fileid": "c84045997e88d22da9df7e3e1ef3fc48a27b15337a73abeb987c1f753b8a1a1c",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/alfisankipan/actions/runs/25699963746"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.1.2",
      "date": "2026-05-11T22:08:25.000Z",
      "commit": "a4c5abdc2f00e7c0c4edd35400ae16b476ea499c",
      "fileid": "34697afd326941ccad84ee7ec4f0969f4920bf370cd0dc87b9c11a0bf5c34735",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/alfisankipan/actions/runs/25699963746"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.1.2",
      "date": "2026-05-11T22:08:08.000Z",
      "commit": "a4c5abdc2f00e7c0c4edd35400ae16b476ea499c",
      "fileid": "157ed039e1ced44afc77904cdfeda1bb61a33dabf38d9c64a23fb723dde07032",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/alfisankipan/actions/runs/25699963746"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.1.2",
      "date": "2026-05-11T22:08:11.000Z",
      "commit": "a4c5abdc2f00e7c0c4edd35400ae16b476ea499c",
      "fileid": "9a0dd29648d121ff2000f461aaa1c613f63fbcb5945da6c735d32b02703f85e4",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/alfisankipan/actions/runs/25699963746"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.1.2",
      "date": "2026-05-11T22:08:10.000Z",
      "commit": "a4c5abdc2f00e7c0c4edd35400ae16b476ea499c",
      "fileid": "de3812939cea887a58ec032cd210df69f0c074fbc5c14b2679e416a4263f1e99",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/alfisankipan/actions/runs/25699963746"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.1.2",
      "date": "2026-05-22T11:14:29.000Z",
      "commit": "a4c5abdc2f00e7c0c4edd35400ae16b476ea499c",
      "fileid": "983ea1d81fee10053c5ea53598e9ef2599f26f01a7e62d73bd9791152de2f142",
      "status": "success",
      "buildurl": "https://github.com/r-universe/alfisankipan/actions/runs/25699963746"
    }
  ]
}