{
  "_id": "6a3127003efcd9bda435e164",
  "Package": "HLMdiag",
  "Type": "Package",
  "Title": "Diagnostic Tools for Hierarchical (Multilevel) Linear Models",
  "Version": "0.5.1",
  "Authors@R": "c(person(\"Adam\", \"Loy\", email = \"loyad01@gmail.com\", role = c(\"cre\", \"aut\")), person(\"Jaylin\", \"Lowe\", role = \"aut\"), person(\"Jack\", \"Moran\", role = \"aut\"))",
  "Maintainer": "Adam Loy <loyad01@gmail.com>",
  "Description": "A suite of diagnostic tools for hierarchical (multilevel)\nlinear models. The tools include not only leverage and\ntraditional deletion diagnostics (Cook's distance, covratio,\ncovtrace, and MDFFITS) but also convenience functions and\ngraphics for residual analysis. Models can be fit using either\nlmer in the 'lme4' package or lme in the 'nlme' package.",
  "License": "GPL-2",
  "LazyLoad": "yes",
  "LazyData": "yes",
  "Collate": "'diagnostic_functions.R' 'group_level_residual_functions.R'\n'identification.R' 'plot_functions.R' 'adjust_formula_lmList.R'\n'case_delete.R' 'LSresids.R' 'HLMdiag-deprecated.R'\n'HLMdiag-package.R' 'hlm_augment.R' 'hlm_influence.R'\n'hlm_resid.R' 'help.R' 'influence_functions.R'\n'utility_functions.R' 'rotate_ranefs.R' 'autism.R' 'ahd.R'\n'radon.R' 'pull_resid.R' 'residual_functions.R'\n'HLMdiag-defunct.R'",
  "Encoding": "UTF-8",
  "URL": "https://github.com/aloy/HLMdiag",
  "BugReports": "https://github.com/aloy/HLMdiag/issues",
  "RoxygenNote": "7.3.2",
  "VignetteBuilder": "knitr",
  "NeedsCompilation": "yes",
  "Packaged": {
    "Date": "2026-06-16 10:29:51 UTC",
    "User": "root"
  },
  "Author": "Adam Loy [cre, aut], Jaylin Lowe [aut], Jack Moran [aut]",
  "Repository": "https://cran.r-universe.dev",
  "Date/Publication": "2025-05-12 23:20:02 UTC",
  "RemoteUrl": "https://github.com/cran/HLMdiag",
  "RemoteRef": "HEAD",
  "RemoteSha": "284085a1c42c53a02d40e0c4c36460a0f92c1208",
  "MD5sum": "b1417c724d6ca754c75e161ab77df58e",
  "_user": "cran",
  "_type": "src",
  "_file": "HLMdiag_0.5.1.tar.gz",
  "_fileid": "f68e1327486c0263214ec28a87034aed2820b4b50f04a233d7127f4fe47dad41",
  "_filesize": 645555,
  "_sha256": "f68e1327486c0263214ec28a87034aed2820b4b50f04a233d7127f4fe47dad41",
  "_created": "2026-06-16T10:29:51.000Z",
  "_published": "2026-06-16T10:35:44.331Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 81636167599,
      "time": 229,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7664244500"
    },
    {
      "job": 81636167588,
      "time": 267,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7664260942"
    },
    {
      "job": 81636167531,
      "time": 230,
      "config": "linux-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7664245282"
    },
    {
      "job": 81636167580,
      "time": 241,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7664251442"
    },
    {
      "job": 81634847078,
      "time": 440,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7664156977"
    },
    {
      "job": 81636167514,
      "time": 156,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7664218730"
    }
  ],
  "_buildurl": "https://github.com/r-universe/cran/actions/runs/27610918122",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/cran/HLMdiag",
  "_commit": {
    "id": "284085a1c42c53a02d40e0c4c36460a0f92c1208",
    "author": "Adam Loy <loyad01@gmail.com>",
    "committer": "cran-robot <csardi.gabor+cran@gmail.com>",
    "message": "version 0.5.1\n",
    "time": 1747092002
  },
  "_maintainer": {
    "name": "Adam Loy",
    "email": "loyad01@gmail.com",
    "login": "aloy",
    "description": "",
    "uuid": 1311926
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.5.0",
      "role": "Depends"
    },
    {
      "package": "Rcpp",
      "role": "LinkingTo"
    },
    {
      "package": "RcppArmadillo",
      "role": "LinkingTo"
    },
    {
      "package": "ggplot2",
      "version": ">= 0.9.2",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "methods",
      "role": "Imports"
    },
    {
      "package": "plyr",
      "role": "Imports"
    },
    {
      "package": "reshape2",
      "role": "Imports"
    },
    {
      "package": "MASS",
      "role": "Imports"
    },
    {
      "package": "Matrix",
      "role": "Imports"
    },
    {
      "package": "mgcv",
      "role": "Imports"
    },
    {
      "package": "dplyr",
      "role": "Imports"
    },
    {
      "package": "magrittr",
      "role": "Imports"
    },
    {
      "package": "stringr",
      "role": "Imports"
    },
    {
      "package": "purrr",
      "role": "Imports"
    },
    {
      "package": "tibble",
      "role": "Imports"
    },
    {
      "package": "tidyselect",
      "role": "Imports"
    },
    {
      "package": "janitor",
      "role": "Imports"
    },
    {
      "package": "Rcpp",
      "role": "Imports"
    },
    {
      "package": "rlang",
      "role": "Imports"
    },
    {
      "package": "ggrepel",
      "role": "Imports"
    },
    {
      "package": "diagonals",
      "role": "Imports"
    },
    {
      "package": "mlmRev",
      "role": "Suggests"
    },
    {
      "package": "WWGbook",
      "role": "Suggests"
    },
    {
      "package": "lme4",
      "version": ">= 1.0",
      "role": "Suggests"
    },
    {
      "package": "nlme",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "car",
      "role": "Suggests"
    },
    {
      "package": "gridExtra",
      "role": "Suggests"
    },
    {
      "package": "qqplotr",
      "role": "Suggests"
    }
  ],
  "_owner": "cran",
  "_selfowned": false,
  "_usedby": 6,
  "_updates": [],
  "_tags": [],
  "_stars": 0,
  "_contributors": [
    {
      "user": "aloy",
      "count": 8,
      "uuid": 1311926
    }
  ],
  "_userbio": {
    "uuid": 6899542,
    "type": "organization",
    "name": "cran",
    "followers": 609,
    "description": "Unofficial read-only mirror of all CRAN R packages"
  },
  "_downloads": {
    "count": 1237,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/HLMdiag"
  },
  "_mentions": 4,
  "_devurl": "https://github.com/aloy/hlmdiag",
  "_searchresults": 233,
  "_topics": [
    "openblas",
    "cpp"
  ],
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/HLMdiag.html",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/aloy/hlmdiag",
  "_realowner": "aloy",
  "_cranurl": false,
  "_releases": [
    {
      "version": "0.1.0",
      "date": "2011-03-22"
    },
    {
      "version": "0.1.1",
      "date": "2011-11-04"
    },
    {
      "version": "0.1.2",
      "date": "2011-12-19"
    },
    {
      "version": "0.1.3",
      "date": "2012-01-03"
    },
    {
      "version": "0.1.4",
      "date": "2012-01-28"
    },
    {
      "version": "0.1.5",
      "date": "2012-03-06"
    },
    {
      "version": "0.1.6",
      "date": "2012-09-01"
    },
    {
      "version": "0.2.0",
      "date": "2013-02-18"
    },
    {
      "version": "0.2.1",
      "date": "2013-03-26"
    },
    {
      "version": "0.2.2",
      "date": "2013-05-01"
    },
    {
      "version": "0.2.3",
      "date": "2013-10-17"
    },
    {
      "version": "0.2.4",
      "date": "2014-01-16"
    },
    {
      "version": "0.2.5",
      "date": "2014-01-30"
    },
    {
      "version": "0.3.0",
      "date": "2015-06-22"
    },
    {
      "version": "0.3.1",
      "date": "2015-12-12"
    },
    {
      "version": "0.4.0",
      "date": "2020-12-14"
    },
    {
      "version": "0.5.0",
      "date": "2021-05-02"
    },
    {
      "version": "0.5.1",
      "date": "2025-05-12"
    }
  ],
  "_exports": [
    "adjust_lmList",
    "case_delete",
    "compare_eb_ls",
    "covratio",
    "covtrace",
    "dotplot_diag",
    "extract_design",
    "hlm_augment",
    "hlm_influence",
    "hlm_resid",
    "leverage",
    "LSresids",
    "mdffits",
    "pull_resid",
    "resid_conditional",
    "resid_marginal",
    "rotate_ranef",
    "rvc",
    "varcomp.mer"
  ],
  "_datasets": [
    {
      "name": "ahd",
      "title": "Methylprednisolone data",
      "object": "ahd",
      "class": [
        "data.frame"
      ],
      "fields": [
        "treatment",
        "subject",
        "week",
        "sbvalue",
        "baseline"
      ],
      "rows": 330,
      "table": true,
      "tojson": true
    },
    {
      "name": "autism",
      "title": "Autism data",
      "object": "autism",
      "class": [
        "data.frame"
      ],
      "fields": [
        "childid",
        "sicdegp",
        "age2",
        "vsae",
        "gender",
        "race",
        "bestest2"
      ],
      "rows": 604,
      "table": true,
      "tojson": true
    },
    {
      "name": "radon",
      "title": "Radon data",
      "object": "radon",
      "class": [
        "data.frame"
      ],
      "fields": [
        "log.radon",
        "basement",
        "uranium",
        "county",
        "county.name"
      ],
      "rows": 919,
      "table": true,
      "tojson": true
    },
    {
      "name": "wages",
      "title": "Wages for male high school dropouts",
      "object": "wages",
      "class": [
        "data.frame"
      ],
      "fields": [
        "id",
        "lnw",
        "exper",
        "ged",
        "postexp",
        "black",
        "hispanic",
        "hgc",
        "hgc.9",
        "uerate",
        "ue.7",
        "ue.centert1",
        "ue.mean",
        "ue.person.cen",
        "ue1"
      ],
      "rows": 6402,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "adjust_lmList.formula",
      "title": "Fitting Common Models via 'lm'",
      "topics": [
        "adjust_lmList",
        "adjust_lmList,formula,data.frame-method",
        "adjust_lmList.formula"
      ]
    },
    {
      "page": "ahd",
      "title": "Methylprednisolone data",
      "topics": [
        "ahd"
      ]
    },
    {
      "page": "autism",
      "title": "Autism data",
      "topics": [
        "autism"
      ]
    },
    {
      "page": "case_delete.mer",
      "title": "Case Deletion for 'mer'/'lmerMod' objects",
      "topics": [
        "case_delete",
        "case_delete.default",
        "case_delete.lme",
        "case_delete.lmerMod",
        "case_delete.mer"
      ]
    },
    {
      "page": "compare_eb_ls",
      "title": "Visually comparing shrinkage and LS estimates",
      "topics": [
        "compare_eb_ls"
      ]
    },
    {
      "page": "hlm_influence",
      "title": "Calculating influence diagnostics for HLMs",
      "topics": [
        "cooks.distance.case_delete",
        "covratio.case_delete",
        "covtrace.case_delete",
        "hlm_influence",
        "hlm_influence.default",
        "hlm_influence.lme",
        "hlm_influence.lmerMod",
        "mdffits.case_delete",
        "rvc.case_delete"
      ]
    },
    {
      "page": "covratio",
      "title": "Influence on precision of fixed effects in HLMs",
      "topics": [
        "covratio",
        "covratio.default",
        "covratio.lme",
        "covratio.lmerMod",
        "covratio.mer",
        "covtrace",
        "covtrace.default",
        "covtrace.lme",
        "covtrace.lmerMod",
        "covtrace.mer"
      ]
    },
    {
      "page": "dotplot_diag",
      "title": "Dot plots for influence diagnostics",
      "topics": [
        "dotplot_diag"
      ]
    },
    {
      "page": "extract_design",
      "title": "Extracting covariance matrices from lme",
      "topics": [
        "extract_design"
      ]
    },
    {
      "page": "hlm_augment",
      "title": "Calculating residuals and influence diagnostics for HLMs",
      "topics": [
        "hlm_augment",
        "hlm_augment.default",
        "hlm_augment.lme",
        "hlm_augment.lmerMod"
      ]
    },
    {
      "page": "hlm_resid",
      "title": "Calculating residuals from HLMs",
      "topics": [
        "hlm_resid",
        "hlm_resid.default",
        "hlm_resid.lme",
        "hlm_resid.lmerMod"
      ]
    },
    {
      "page": "HLMdiag",
      "title": "Diagnostic tools for hierarchical (multilevel) linear models",
      "topics": [
        "HLMdiag-package",
        "HLMdiag",
        "package-HLMdiag"
      ]
    },
    {
      "page": "HLMdiag-defunct",
      "title": "Defunct functions in package HLMdiag",
      "topics": [
        "diagnostics",
        "ggplot_qqnorm",
        "group_qqnorm",
        "HLMdiag-defunct",
        "HLMresid",
        "HLMresid.default",
        "HLMresid.lmerMod",
        "HLMresid.mer"
      ]
    },
    {
      "page": "HLMdiag-deprecated",
      "title": "Deprecated functions in HLMdiag",
      "topics": [
        "HLMdiag-deprecated"
      ]
    },
    {
      "page": "leverage.mer",
      "title": "Leverage for HLMs",
      "topics": [
        "leverage",
        "leverage.default",
        "leverage.lme",
        "leverage.lmerMod",
        "leverage.mer"
      ]
    },
    {
      "page": "LSresids.mer",
      "title": "Calculating least squares residuals",
      "topics": [
        "LSresids",
        "LSresids.default",
        "LSresids.lme",
        "LSresids.lmerMod",
        "LSresids.mer"
      ]
    },
    {
      "page": "cooks.distance",
      "title": "Influence on fixed effects of HLMs",
      "topics": [
        "cooks.distance",
        "cooks.distance.lme",
        "cooks.distance.lmerMod",
        "cooks.distance.mer",
        "mdffits",
        "mdffits.default",
        "mdffits.lme",
        "mdffits.lmerMod",
        "mdffits.mer"
      ]
    },
    {
      "page": "pull_resid.lmerMod",
      "title": "Computationally Efficient HLM Residuals",
      "topics": [
        "pull_resid",
        "pull_resid.default",
        "pull_resid.lme",
        "pull_resid.lmerMod"
      ]
    },
    {
      "page": "radon",
      "title": "Radon data",
      "topics": [
        "radon"
      ]
    },
    {
      "page": "resid_conditional",
      "title": "Conditional residuals",
      "topics": [
        "resid_conditional",
        "resid_conditional.default",
        "resid_conditional.lme",
        "resid_conditional.lmerMod"
      ]
    },
    {
      "page": "resid_marginal",
      "title": "Marginal residuals",
      "topics": [
        "resid_marginal",
        "resid_marginal.default",
        "resid_marginal.lme",
        "resid_marginal.lmerMod"
      ]
    },
    {
      "page": "resid_ranef",
      "title": "Random effects residuals",
      "topics": [
        "resid_ranef"
      ]
    },
    {
      "page": "rotate_ranef.mer",
      "title": "Calculate s-dimensional rotated random effects",
      "topics": [
        "rotate_ranef",
        "rotate_ranef.default",
        "rotate_ranef.lme",
        "rotate_ranef.lmerMod",
        "rotate_ranef.mer"
      ]
    },
    {
      "page": "rvc.mer",
      "title": "Relative variance change for HLMs",
      "topics": [
        "rvc",
        "rvc.default",
        "rvc.lme",
        "rvc.lmerMod",
        "rvc.mer"
      ]
    },
    {
      "page": "varcomp.mer",
      "title": "Extracting variance components",
      "topics": [
        "varcomp.mer"
      ]
    },
    {
      "page": "wages",
      "title": "Wages for male high school dropouts",
      "topics": [
        "wages"
      ]
    }
  ],
  "_pkglogo": "https://github.com/cran/HLMdiag/raw/HEAD/man/figures/logo.png",
  "_readme": "https://github.com/cran/HLMdiag/raw/HEAD/README.md",
  "_rundeps": [
    "cli",
    "cpp11",
    "diagonals",
    "dplyr",
    "farver",
    "generics",
    "ggplot2",
    "ggrepel",
    "glue",
    "gtable",
    "hms",
    "isoband",
    "janitor",
    "labeling",
    "lattice",
    "lifecycle",
    "lubridate",
    "magrittr",
    "MASS",
    "Matrix",
    "mgcv",
    "nlme",
    "pillar",
    "pkgconfig",
    "plyr",
    "purrr",
    "R6",
    "RColorBrewer",
    "Rcpp",
    "RcppArmadillo",
    "reshape2",
    "rlang",
    "S7",
    "scales",
    "snakecase",
    "stringi",
    "stringr",
    "tibble",
    "tidyr",
    "tidyselect",
    "timechange",
    "utf8",
    "vctrs",
    "viridisLite",
    "withr"
  ],
  "_sysdeps": [
    {
      "shlib": "liblapack",
      "package": "libopenblas0-pthread",
      "source": "openblas",
      "version": "0.3.26+ds-1ubuntu0.1",
      "name": "openblas",
      "homepage": "https://www.openblas.net/",
      "description": "Optimized BLAS (linear algebra) library (shared lib, pthread)"
    },
    {
      "shlib": "libblas",
      "package": "libopenblas0-pthread",
      "source": "openblas",
      "version": "0.3.26+ds-1ubuntu0.1",
      "name": "openblas",
      "homepage": "https://www.openblas.net/",
      "description": "Optimized BLAS (linear algebra) library (shared lib, pthread)"
    },
    {
      "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": "influence_diagnostics.Rmd",
      "filename": "influence_diagnostics.html",
      "title": "Influence Diagnostics",
      "author": "Jaylin Lowe, Jack Moran, Adam Loy",
      "engine": "knitr::rmarkdown_notangle",
      "headings": [
        "Overview",
        "hlm_influence() function",
        "Introduction",
        "Obtain influence diagnostics at different levels with level",
        "Investigate deletion of specific observations or groups with delete",
        "Select different types of leverage with leverage argument",
        "Choose between approximations or full refits with approx",
        "na.action and the data argument",
        "hlm_augment function",
        "lme objects from nlme package",
        "Important differences for lme objects",
        "Cook's distance values comparison to other packages",
        "The car package",
        "The lme4 package",
        "lme4 approximation",
        "lme4 full refit"
      ],
      "created": "2020-12-14 20:30:10",
      "modified": "2025-05-12 23:20:02",
      "commits": 3
    },
    {
      "source": "hlm_resid.Rmd",
      "filename": "hlm_resid.html",
      "title": "Residual Diagnostics",
      "author": "Jack Moran, Jaylin Lowe, Adam Loy",
      "engine": "knitr::rmarkdown_notangle",
      "headings": [
        "HLMdiag: a diagnostic tool for hierarchical (multilevel) linear models",
        "hlm_resid() function",
        "Types of residuals in multilevel models",
        "Example Data",
        "hlm_resid() usage",
        "General usage",
        "standardize and include.ls",
        "Higher-level residuals",
        "na.action and data",
        "Three-level models",
        "Using hlm_resid() in context",
        "pull_resid()",
        "hlm_augment()",
        "References"
      ],
      "created": "2020-12-14 20:30:10",
      "modified": "2020-12-14 20:30:10",
      "commits": 1
    },
    {
      "source": "jss_update.Rmd",
      "filename": "jss_update.html",
      "title": "Updated JSS code",
      "author": "Adam Loy",
      "engine": "knitr::rmarkdown_notangle",
      "headings": [
        "Preliminaries",
        "Exam data",
        "Residual analysis",
        "Influence analysis",
        "Diagnostics for variance components"
      ],
      "created": "2020-12-14 20:30:10",
      "modified": "2021-05-02 03:30:08",
      "commits": 2
    }
  ],
  "_score": 6.493149376142089,
  "_indexed": false,
  "_nocasepkg": "hlmdiag",
  "_universes": [
    "cran"
  ],
  "_indexurl": "https://aloy.r-universe.dev/HLMdiag",
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.5.1",
      "date": "2026-06-16T10:32:47.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "284085a1c42c53a02d40e0c4c36460a0f92c1208",
      "fileid": "cfcddb49bf6d37a5de7f9ac377118c81e3af4b50670a2ffa7d067e9cb2eb05bb",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/27610918122"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.5.1",
      "date": "2026-06-16T10:33:10.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "284085a1c42c53a02d40e0c4c36460a0f92c1208",
      "fileid": "4715a8d995757668dc2b8423b4ca92672b05a1e0bf590fac891e6a02d51c61db",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/27610918122"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.5.1",
      "date": "2026-06-16T10:32:47.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "284085a1c42c53a02d40e0c4c36460a0f92c1208",
      "fileid": "e054bf12caede5baaaaf333f19149a9acbedc26ccf6cd98666fc66d6c2427a27",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/27610918122"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.5.1",
      "date": "2026-06-16T10:33:01.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "284085a1c42c53a02d40e0c4c36460a0f92c1208",
      "fileid": "64492f358683c93eab8d5084c6c101150ab4003963c0ff3026f666bccd88a8db",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/27610918122"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.5.1",
      "date": "2026-06-16T10:33:03.000Z",
      "arch": "emscripten",
      "commit": "284085a1c42c53a02d40e0c4c36460a0f92c1208",
      "fileid": "10d3bcff1b577451ac6b2f3f0c3e6aeaa9ff9050024f463e8aab3150e67e56db",
      "status": "success",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/27610918122"
    }
  ]
}