{
  "_id": "6a23bd27530b9bc726bda175",
  "Package": "nadir",
  "Type": "Package",
  "Title": "Super Learning with Flexible Formulas",
  "Version": "0.0.1",
  "Authors@R": "c(\nperson(\"Christian\", \"Testa\", , \"ctesta@hsph.harvard.edu\", role = c(\"aut\", \"cre\"),\ncomment = c(ORCID = \"0000-0001-9103-5839\")\n),\nperson(\"Nima\", \"Hejazi\", , \"\", role = c('ths', 'aut'),\ncomment = c(ORCID = '0000-0002-7127-2789')\n))",
  "Description": "A functional programming based implementation of the super\nlearner algorithm with an emphasis on supporting the use of\nformulas to specify learners. This approach offers several\nimprovements compared to past implementations including the\nability to easily use random-effects specified in formulas\n(like y ~ (age | strata) + ...) and construction of new\nlearners is as simple as writing and passing a new function.\nThe super learner algorithm was originally described in van der\nLaan et al. (2007)\n<https://biostats.bepress.com/ucbbiostat/paper222/>.",
  "License": "MIT + file LICENSE",
  "Encoding": "UTF-8",
  "Roxygen": "list (markdown = TRUE, roclets = c (\"namespace\", \"rd\",\n\"srr::srr_stats_roclet\"))",
  "RoxygenNote": "7.3.2",
  "VignetteBuilder": "knitr",
  "Config/testthat/edition": "3",
  "URL": "https://ctesta01.github.io/nadir/,\nhttps://github.com/ctesta01/nadir/",
  "BugReports": "https://github.com/ctesta01/nadir/issues",
  "Config/pak/sysreqs": "cmake make libicu-dev",
  "Repository": "https://ctesta01.r-universe.dev",
  "Date/Publication": "2026-04-07 20:29:53 UTC",
  "RemoteUrl": "https://github.com/ctesta01/nadir",
  "RemoteRef": "HEAD",
  "RemoteSha": "0397ded8c6cb6f32f8050f90bc2c84e992f6829e",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-06-06 06:19:43 UTC",
    "User": "root"
  },
  "Author": "Christian Testa [aut, cre] (ORCID:\n<https://orcid.org/0000-0001-9103-5839>),\nNima Hejazi [ths, aut] (ORCID: <https://orcid.org/0000-0002-7127-2789>)",
  "Maintainer": "Christian Testa <ctesta@hsph.harvard.edu>",
  "MD5sum": "dd2353e6dbf9c53c2de0e246f2d9d153",
  "_user": "ctesta01",
  "_type": "src",
  "_file": "nadir_0.0.1.tar.gz",
  "_fileid": "f1221e583d3c59e719fba9e30e410ba51ab1e03670112c99ab4da3a0f4c06edb",
  "_filesize": 1719042,
  "_sha256": "f1221e583d3c59e719fba9e30e410ba51ab1e03670112c99ab4da3a0f4c06edb",
  "_created": "2026-06-06T06:19:43.000Z",
  "_published": "2026-06-06T06:24:39.788Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 79857136740,
      "time": 249,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7451949220"
    },
    {
      "job": 79857136759,
      "time": 250,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7451949390"
    },
    {
      "job": 79857136742,
      "time": 208,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7451942504"
    },
    {
      "job": 79857136747,
      "time": 223,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7451944349"
    },
    {
      "job": 79856920248,
      "time": 220,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7451918178"
    },
    {
      "job": 79857136729,
      "time": 123,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7451934315"
    },
    {
      "job": 79857136776,
      "time": 224,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7451946392"
    },
    {
      "job": 79857136767,
      "time": 204,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7451944167"
    },
    {
      "job": 79857136792,
      "time": 209,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7451944672"
    }
  ],
  "_buildurl": "https://github.com/r-universe/ctesta01/actions/runs/27054753537",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/ctesta01/nadir",
  "_commit": {
    "id": "0397ded8c6cb6f32f8050f90bc2c84e992f6829e",
    "author": "Christian Testa <ctesta@hsph.harvard.edu>",
    "committer": "Christian Testa <ctesta@hsph.harvard.edu>",
    "message": "minor docs update\n",
    "time": 1775593793
  },
  "_maintainer": {
    "name": "Christian Testa",
    "email": "ctesta@hsph.harvard.edu",
    "login": "ctesta01",
    "mastodon": "@ctesta@fediscience.org",
    "twitter": "@_christiantesta",
    "description": "I'm using mathematical models to better understand how we can improve health equity.  ⧉",
    "uuid": 6935381,
    "orcid": "0000-0001-9103-5839"
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.2.0",
      "role": "Depends"
    },
    {
      "package": "dplyr",
      "role": "Imports"
    },
    {
      "package": "earth",
      "role": "Imports"
    },
    {
      "package": "future",
      "role": "Imports"
    },
    {
      "package": "future.apply",
      "role": "Imports"
    },
    {
      "package": "gbm",
      "role": "Imports"
    },
    {
      "package": "glmnet",
      "role": "Imports"
    },
    {
      "package": "hal9001",
      "role": "Imports"
    },
    {
      "package": "lifecycle",
      "role": "Imports"
    },
    {
      "package": "lme4",
      "role": "Imports"
    },
    {
      "package": "methods",
      "role": "Imports"
    },
    {
      "package": "mgcv",
      "role": "Imports"
    },
    {
      "package": "nnet",
      "role": "Imports"
    },
    {
      "package": "nnls",
      "role": "Imports"
    },
    {
      "package": "origami",
      "role": "Imports"
    },
    {
      "package": "randomForest",
      "role": "Imports"
    },
    {
      "package": "ranger",
      "role": "Imports"
    },
    {
      "package": "tibble",
      "role": "Imports"
    },
    {
      "package": "tidyr",
      "role": "Imports"
    },
    {
      "package": "VGAM",
      "role": "Imports"
    },
    {
      "package": "xgboost",
      "role": "Imports"
    },
    {
      "package": "MASS",
      "role": "Suggests"
    },
    {
      "package": "ggplot2",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "palmerpenguins",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "survival",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    },
    {
      "package": "withr",
      "role": "Suggests"
    }
  ],
  "_owner": "ctesta01",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2025-32",
      "n": 10
    },
    {
      "week": "2025-33",
      "n": 8
    },
    {
      "week": "2025-34",
      "n": 12
    },
    {
      "week": "2025-35",
      "n": 14
    },
    {
      "week": "2025-43",
      "n": 4
    },
    {
      "week": "2026-02",
      "n": 15
    },
    {
      "week": "2026-07",
      "n": 6
    },
    {
      "week": "2026-08",
      "n": 2
    },
    {
      "week": "2026-09",
      "n": 5
    },
    {
      "week": "2026-14",
      "n": 1
    },
    {
      "week": "2026-15",
      "n": 1
    }
  ],
  "_tags": [],
  "_topics": [
    "cross-validation",
    "ensemble-learning",
    "machine-learning",
    "regression"
  ],
  "_stars": 6,
  "_contributors": [
    {
      "user": "ctesta01",
      "count": 123,
      "uuid": 6935381
    }
  ],
  "_userbio": {
    "uuid": 6935381,
    "type": "user",
    "name": "Christian Testa",
    "description": "I'm using mathematical models to better understand how we can improve health equity.  ⧉"
  },
  "_downloads": {
    "count": 139,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/nadir"
  },
  "_devurl": "https://github.com/ctesta01/nadir",
  "_pkgdown": "https://ctesta01.github.io/nadir/",
  "_searchresults": 26,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/nadir.html",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/ctesta01/nadir",
  "_realowner": "ctesta01",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.0.1",
      "date": "2026-02-20"
    }
  ],
  "_exports": [
    "add_screener",
    "compare_learners",
    "cv_character_and_factors_schema",
    "cv_origami_schema",
    "cv_random_schema",
    "cv_super_learner",
    "determine_super_learner_weights_nnls",
    "determine_weights_for_binary_outcomes",
    "determine_weights_using_neg_log_loss",
    "df_to_survival_stacked",
    "list_known_learners",
    "lnr_earth",
    "lnr_gam",
    "lnr_gbm",
    "lnr_glm",
    "lnr_glm_density",
    "lnr_glmer",
    "lnr_glmnet",
    "lnr_hal",
    "lnr_heteroskedastic_density",
    "lnr_homoskedastic_density",
    "lnr_lm",
    "lnr_lm_density",
    "lnr_lmer",
    "lnr_logistic",
    "lnr_mean",
    "lnr_multinomial_nnet",
    "lnr_multinomial_vglm",
    "lnr_nnet",
    "lnr_ranger",
    "lnr_ranger_binary",
    "lnr_rf",
    "lnr_rf_binary",
    "lnr_xgboost",
    "make_learner_names_unique",
    "nadir_supported_types",
    "negative_log_loss",
    "screener_cor",
    "screener_cor_top_n",
    "screener_t_test",
    "super_learner"
  ],
  "_help": [
    {
      "page": "add_screener",
      "title": "Add a Screener to a Learner",
      "topics": [
        "add_screener"
      ]
    },
    {
      "page": "binary_learners",
      "title": "Binary Learners in '{nadir}'",
      "topics": [
        "binary_learners"
      ]
    },
    {
      "page": "compare_learners",
      "title": "Compare Learners",
      "topics": [
        "compare_learners"
      ]
    },
    {
      "page": "cv_character_and_factors_schema",
      "title": "Cross Validation Training/Validation Splits with Characters/Factor Columns",
      "topics": [
        "cv_character_and_factors_schema"
      ]
    },
    {
      "page": "cv_origami_schema",
      "title": "Cross-Validation with Origami",
      "topics": [
        "cv_origami_schema"
      ]
    },
    {
      "page": "cv_random_schema",
      "title": "Assign Data to One of n_folds Randomly and Produce Training/Validation Data Lists",
      "topics": [
        "cv_random_schema"
      ]
    },
    {
      "page": "cv_super_learner",
      "title": "Cross-Validating a 'super_learner'",
      "topics": [
        "cv_super_learner"
      ]
    },
    {
      "page": "density_learners",
      "title": "Conditional Density Estimation in the '{nadir}' Package",
      "topics": [
        "density_learners"
      ]
    },
    {
      "page": "determine_super_learner_weights_nnls",
      "title": "Determine SuperLearner Weights with Nonnegative Least Squares",
      "topics": [
        "determine_super_learner_weights_nnls"
      ]
    },
    {
      "page": "determine_weights_for_binary_outcomes",
      "title": "Determine Weights Appropriately for Super Learner given Binary Outcomes",
      "topics": [
        "determine_weights_for_binary_outcomes"
      ]
    },
    {
      "page": "determine_weights_using_neg_log_loss",
      "title": "Determine Weights for Density Estimators for SuperLearner",
      "topics": [
        "determine_weights_using_neg_log_loss"
      ]
    },
    {
      "page": "df_to_survival_stacked",
      "title": "Repeat Observations for Survival Stacking",
      "topics": [
        "df_to_survival_stacked"
      ]
    },
    {
      "page": "learners",
      "title": "Learners in the '{nadir}' Package",
      "topics": [
        "learners"
      ]
    },
    {
      "page": "list_known_learners",
      "title": "List Known Learners",
      "topics": [
        "list_known_learners"
      ]
    },
    {
      "page": "lnr_earth",
      "title": "Earth Learner",
      "topics": [
        "lnr_earth"
      ]
    },
    {
      "page": "lnr_gam",
      "title": "Generalized Additive Model Learner",
      "topics": [
        "lnr_gam"
      ]
    },
    {
      "page": "lnr_gbm",
      "title": "Gradient Boosting Machines Learner",
      "topics": [
        "lnr_gbm"
      ]
    },
    {
      "page": "lnr_glm",
      "title": "GLM Learner",
      "topics": [
        "lnr_glm"
      ]
    },
    {
      "page": "lnr_glm_density",
      "title": "Conditional Normal Density Estimation Given Mean Predictors — with GLMs",
      "topics": [
        "lnr_glm_density"
      ]
    },
    {
      "page": "lnr_glmer",
      "title": "Generalized Linear Mixed-Effects ('lme4::glmer') Learner",
      "topics": [
        "lnr_glmer"
      ]
    },
    {
      "page": "lnr_glmnet",
      "title": "glmnet Learner",
      "topics": [
        "lnr_glmnet"
      ]
    },
    {
      "page": "lnr_hal",
      "title": "Highly Adaptive Lasso",
      "topics": [
        "lnr_hal"
      ]
    },
    {
      "page": "lnr_heteroskedastic_density",
      "title": "Conditional Density Estimation with Heteroskedasticity",
      "topics": [
        "lnr_heteroskedastic_density"
      ]
    },
    {
      "page": "lnr_homoskedastic_density",
      "title": "Conditional Density Estimation with Homoskedasticity Assumption",
      "topics": [
        "lnr_homoskedastic_density"
      ]
    },
    {
      "page": "lnr_lm",
      "title": "Linear Model Learner",
      "topics": [
        "lnr_lm"
      ]
    },
    {
      "page": "lnr_lm_density",
      "title": "Conditional Normal Density Estimation Given Mean Predictors",
      "topics": [
        "lnr_lm_density"
      ]
    },
    {
      "page": "lnr_lmer",
      "title": "Random/Mixed-Effects ('lme4::lmer') Learner",
      "topics": [
        "lnr_lmer"
      ]
    },
    {
      "page": "lnr_logistic",
      "title": "Standard Logistic Regression for Binary Classification",
      "topics": [
        "lnr_logistic"
      ]
    },
    {
      "page": "lnr_mean",
      "title": "Mean Learner",
      "topics": [
        "lnr_mean"
      ]
    },
    {
      "page": "lnr_multinomial_nnet",
      "title": "'nnet::multinom' Multinomial Learner",
      "topics": [
        "lnr_multinomial_nnet"
      ]
    },
    {
      "page": "lnr_multinomial_vglm",
      "title": "'VGAM::vglm' Multinomial Learner",
      "topics": [
        "lnr_multinomial_vglm"
      ]
    },
    {
      "page": "lnr_nnet",
      "title": "Use nnet for Binary Classification",
      "topics": [
        "lnr_nnet"
      ]
    },
    {
      "page": "lnr_ranger",
      "title": "ranger Learner",
      "topics": [
        "lnr_ranger"
      ]
    },
    {
      "page": "lnr_ranger_binary",
      "title": "ranger Learner for Binary Outcomes",
      "topics": [
        "lnr_ranger_binary"
      ]
    },
    {
      "page": "lnr_rf",
      "title": "randomForest Learner",
      "topics": [
        "lnr_rf"
      ]
    },
    {
      "page": "lnr_rf_binary",
      "title": "Use Random Forest for Binary Classification",
      "topics": [
        "lnr_rf_binary"
      ]
    },
    {
      "page": "lnr_xgboost",
      "title": "XGBoost Learner",
      "topics": [
        "lnr_xgboost"
      ]
    },
    {
      "page": "make_learner_names_unique",
      "title": "Make Unique Learner Names",
      "topics": [
        "make_learner_names_unique"
      ]
    },
    {
      "page": "multiclass_learners",
      "title": "Multiclass Learners in '{nadir}'",
      "topics": [
        "multiclass_learners"
      ]
    },
    {
      "page": "nadir_supported_types",
      "title": "Outcome types supported by '{nadir}'",
      "topics": [
        "nadir_supported_types"
      ]
    },
    {
      "page": "negative_log_loss",
      "title": "Negative Log Loss",
      "topics": [
        "negative_log_loss"
      ]
    },
    {
      "page": "negative_log_loss_for_binary",
      "title": "Negative Log Loss for Binary",
      "topics": [
        "negative_log_loss_for_binary"
      ]
    },
    {
      "page": "predict.nadir_sl_model",
      "title": "Predict from a 'nadir::super_learner()' model",
      "topics": [
        "predict.nadir_sl_model"
      ]
    },
    {
      "page": "screener_cor",
      "title": "Correlation Threshold Based Screening",
      "topics": [
        "screener_cor"
      ]
    },
    {
      "page": "screener_cor_top_n",
      "title": "Correlation Threshold Based Screening",
      "topics": [
        "screener_cor_top_n"
      ]
    },
    {
      "page": "screener_t_test",
      "title": "t-test Based Screening: Thresholds on p.values and/or t statistics",
      "topics": [
        "screener_t_test"
      ]
    },
    {
      "page": "screeners",
      "title": "Wrapping Learners with a Screener",
      "topics": [
        "screeners"
      ]
    },
    {
      "page": "super_learner",
      "title": "Super Learner: Cross-Validation Based Ensemble Learning",
      "topics": [
        "super_learner"
      ]
    }
  ],
  "_pkglogo": "https://github.com/ctesta01/nadir/raw/HEAD/man/figures/logo.png",
  "_readme": "https://github.com/ctesta01/nadir/raw/HEAD/README.md",
  "_rundeps": [
    "abind",
    "assertthat",
    "boot",
    "cli",
    "codetools",
    "cpp11",
    "data.table",
    "digest",
    "dplyr",
    "earth",
    "foreach",
    "Formula",
    "future",
    "future.apply",
    "gbm",
    "generics",
    "glmnet",
    "globals",
    "glue",
    "hal9001",
    "iterators",
    "jsonlite",
    "lattice",
    "lifecycle",
    "listenv",
    "lme4",
    "magrittr",
    "MASS",
    "Matrix",
    "mgcv",
    "minqa",
    "nlme",
    "nloptr",
    "nnet",
    "nnls",
    "origami",
    "parallelly",
    "pillar",
    "pkgconfig",
    "plotmo",
    "plotrix",
    "purrr",
    "R6",
    "randomForest",
    "ranger",
    "rbibutils",
    "Rcpp",
    "RcppEigen",
    "Rdpack",
    "reformulas",
    "rlang",
    "shape",
    "stringi",
    "stringr",
    "survival",
    "tibble",
    "tidyr",
    "tidyselect",
    "utf8",
    "vctrs",
    "VGAM",
    "withr",
    "xgboost"
  ],
  "_vignettes": [
    {
      "source": "Basic-Examples.Rmd",
      "filename": "Basic-Examples.html",
      "title": "Basic Examples",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Getting More Information Out"
      ],
      "created": "2026-01-05 17:03:46",
      "modified": "2026-04-07 20:29:53",
      "commits": 2
    }
  ],
  "_score": 5.933487287848705,
  "_indexed": true,
  "_nocasepkg": "nadir",
  "_universes": [
    "ctesta01"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.0.1",
      "date": "2026-06-06T06:22:36.000Z",
      "distro": "noble",
      "commit": "0397ded8c6cb6f32f8050f90bc2c84e992f6829e",
      "fileid": "cd66834df80fe3dee02e2a144c687188ff770a7f759bc072766e4a6351cd7865",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ctesta01/actions/runs/27054753537"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.0.1",
      "date": "2026-06-06T06:22:45.000Z",
      "distro": "noble",
      "commit": "0397ded8c6cb6f32f8050f90bc2c84e992f6829e",
      "fileid": "f81bd1501c72e88f1231c4d5fa7fe48cf30f8b03b7f690f13c37f549f4971051",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ctesta01/actions/runs/27054753537"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.0.1",
      "date": "2026-06-06T06:22:15.000Z",
      "commit": "0397ded8c6cb6f32f8050f90bc2c84e992f6829e",
      "fileid": "6fd0493858e4435f77ac51e88eb83cec787b00c0b2ed8a64faf0b95124b1121b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ctesta01/actions/runs/27054753537"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.0.1",
      "date": "2026-06-06T06:22:06.000Z",
      "commit": "0397ded8c6cb6f32f8050f90bc2c84e992f6829e",
      "fileid": "29fc52e90a0e035f4a8e456d7d9080e2e1dbbea1a5a290a4838a086db2fb3623",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ctesta01/actions/runs/27054753537"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.0.1",
      "date": "2026-06-06T06:22:12.000Z",
      "commit": "0397ded8c6cb6f32f8050f90bc2c84e992f6829e",
      "fileid": "bd70bc2d2341ab9aecd5e7f9eb8809d6bb2e49d9850df65419526f9a5222825c",
      "status": "success",
      "buildurl": "https://github.com/r-universe/ctesta01/actions/runs/27054753537"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.0.1",
      "date": "2026-06-06T06:21:23.000Z",
      "commit": "0397ded8c6cb6f32f8050f90bc2c84e992f6829e",
      "fileid": "557f269e6651758e650d6beafe5c2f8d0746359557de8a25ec9245338460acc0",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ctesta01/actions/runs/27054753537"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.0.1",
      "date": "2026-06-06T06:21:07.000Z",
      "commit": "0397ded8c6cb6f32f8050f90bc2c84e992f6829e",
      "fileid": "dfd3011fbdbb2f46d3c1275bff68192076542f5ca1f6bc633895d13f2d546018",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ctesta01/actions/runs/27054753537"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.0.1",
      "date": "2026-06-06T06:21:11.000Z",
      "commit": "0397ded8c6cb6f32f8050f90bc2c84e992f6829e",
      "fileid": "851b96bf8663aca2b8a47dc7e9490e4e440369ad0434e037a8b946856bcd1f7b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ctesta01/actions/runs/27054753537"
    }
  ]
}