{
  "_id": "6a1052a7acfb0bcc41ca1816",
  "Package": "sparsediscrim",
  "Title": "Sparse and Regularized Discriminant Analysis",
  "Version": "0.2.5.9000",
  "Date": "2017-10-14",
  "Author": "John A. Ramey <johnramey@gmail.com>",
  "Maintainer": "Max Kuhn <mxkuhn@gmail.com>",
  "Description": "A collection of sparse and regularized discriminant\nanalysis methods intended for small-sample, high-dimensional\ndata sets. The package features the High-Dimensional\nRegularized Discriminant Analysis classifier from Ramey et al.\n(2017) <arXiv:1602.01182>. Other classifiers include those from\nDudoit et al. (2002) <doi:10.1198/016214502753479248>, Pang et\nal. (2009) <doi:10.1111/j.1541-0420.2009.01200.x>, and Tong et\nal. (2012) <doi:10.1093/bioinformatics/btr690>.",
  "License": "MIT + file LICENSE",
  "URL": "https://github.com/topepo/sparsediscrim",
  "Roxygen": "list(markdown = TRUE)",
  "RoxygenNote": "7.1.1.9001",
  "Encoding": "UTF-8",
  "Repository": "https://topepo.r-universe.dev",
  "Date/Publication": "2021-06-28 00:27:34 UTC",
  "RemoteUrl": "https://github.com/topepo/sparsediscrim",
  "RemoteRef": "HEAD",
  "RemoteSha": "60198a54e0ced0afa3909121eea55321dd04c56f",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-05-09 09:19:49 UTC",
    "User": "root"
  },
  "MD5sum": "3659be1437e6948fbfda2fa175564f79",
  "_user": "topepo",
  "_type": "src",
  "_file": "sparsediscrim_0.2.5.9000.tar.gz",
  "_fileid": "97e7a3ce677af5eadb3aebe09d32e49d141606424de872df87b46a445ac429db",
  "_filesize": 358423,
  "_sha256": "97e7a3ce677af5eadb3aebe09d32e49d141606424de872df87b46a445ac429db",
  "_created": "2026-05-09T09:19:49.000Z",
  "_published": "2026-05-22T12:57:11.208Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 77383951953,
      "time": 134,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "6894612933"
    },
    {
      "job": 77383952061,
      "time": 129,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6894612525"
    },
    {
      "job": 77383952210,
      "time": 93,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "6894610506"
    },
    {
      "job": 77383952287,
      "time": 97,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6894610640"
    },
    {
      "job": 77383951515,
      "time": 197,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6894600464"
    },
    {
      "job": 77383951310,
      "time": 93,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7161019643"
    },
    {
      "job": 77383951801,
      "time": 111,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "6894610449"
    },
    {
      "job": 77383952118,
      "time": 81,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "6894607868"
    },
    {
      "job": 77383951948,
      "time": 112,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6894610492"
    }
  ],
  "_buildurl": "https://github.com/r-universe/topepo/actions/runs/25597455979",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/topepo/sparsediscrim",
  "_commit": {
    "id": "60198a54e0ced0afa3909121eea55321dd04c56f",
    "author": "Max Kuhn <mxkuhn@gmail.com>",
    "committer": "GitHub <noreply@github.com>",
    "message": "Merge pull request #4 from topepo/predict-type\n\nuse `type` argument with `predict()`. ",
    "time": 1624840054
  },
  "_maintainer": {
    "name": "Max Kuhn",
    "email": "mxkuhn@gmail.com",
    "login": "topepo",
    "orcid": "0000-0003-2402-136X",
    "uuid": 5731043
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 2.10",
      "role": "Depends"
    },
    {
      "package": "bdsmatrix",
      "role": "Imports"
    },
    {
      "package": "corpcor",
      "role": "Imports"
    },
    {
      "package": "dplyr",
      "role": "Imports"
    },
    {
      "package": "ggplot2",
      "role": "Imports"
    },
    {
      "package": "mvtnorm",
      "role": "Imports"
    },
    {
      "package": "rlang",
      "role": "Imports"
    },
    {
      "package": "testthat",
      "role": "Suggests"
    },
    {
      "package": "MASS",
      "role": "Suggests"
    },
    {
      "package": "covr",
      "role": "Suggests"
    },
    {
      "package": "modeldata",
      "role": "Suggests"
    }
  ],
  "_owner": "topepo",
  "_selfowned": true,
  "_usedby": 1,
  "_updates": [],
  "_tags": [],
  "_stars": 3,
  "_contributors": [
    {
      "user": "topepo",
      "count": 34,
      "uuid": 5731043
    }
  ],
  "_userbio": {
    "uuid": 5731043,
    "type": "user",
    "name": "Max Kuhn"
  },
  "_downloads": {
    "count": 3366,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/sparsediscrim"
  },
  "_devurl": "https://github.com/topepo/sparsediscrim",
  "_searchresults": 101,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "extra/sparsediscrim.html",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/topepo/sparsediscrim",
  "_realowner": "topepo",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.1.0",
      "date": "2013-05-25"
    },
    {
      "version": "0.2",
      "date": "2014-03-31"
    },
    {
      "version": "0.2.3",
      "date": "2016-06-24"
    },
    {
      "version": "0.2.4",
      "date": "2017-08-14"
    },
    {
      "version": "0.3.0",
      "date": "2021-07-01"
    }
  ],
  "_exports": [
    "cov_autocorrelation",
    "cov_block_autocorrelation",
    "cov_eigen",
    "cov_list",
    "cov_mle",
    "cov_pool",
    "cov_shrink_diag",
    "cv_partition",
    "generate_blockdiag",
    "generate_intraclass",
    "lda_diag",
    "lda_eigen",
    "lda_emp_bayes",
    "lda_emp_bayes_eigen",
    "lda_pseudo",
    "lda_schafer",
    "lda_shrink_cov",
    "lda_shrink_mean",
    "lda_thomaz",
    "log_determinant",
    "qda_diag",
    "qda_shrink_cov",
    "qda_shrink_mean",
    "rda_high_dim",
    "rda_high_dim_cv",
    "solve_chol",
    "tong_mean_shrinkage"
  ],
  "_datasets": [
    {
      "name": "two_class_sim_data",
      "title": "Example bivariate classification data from caret",
      "object": "two_class_sim_data",
      "file": "two_class_sim_data.rda",
      "class": [
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "TwoFactor1",
        "TwoFactor2",
        "Linear01",
        "Linear02",
        "Linear03",
        "Linear04",
        "Linear05",
        "Linear06",
        "Linear07",
        "Linear08",
        "Linear09",
        "Linear10",
        "Nonlinear1",
        "Nonlinear2",
        "Nonlinear3",
        "Class"
      ],
      "rows": 106,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "center_data",
      "title": "Centers the observations in a matrix by their respective class sample means",
      "topics": [
        "center_data"
      ]
    },
    {
      "page": "cov_autocorrelation",
      "title": "Generates a p \\times p autocorrelated covariance matrix",
      "topics": [
        "cov_autocorrelation"
      ]
    },
    {
      "page": "cov_block_autocorrelation",
      "title": "Generates a p \\times p block-diagonal covariance matrix with autocorrelated blocks.",
      "topics": [
        "cov_block_autocorrelation"
      ]
    },
    {
      "page": "cov_eigen",
      "title": "Computes the eigenvalue decomposition of the maximum likelihood estimators (MLE) of the covariance matrices for the given data matrix",
      "topics": [
        "cov_eigen"
      ]
    },
    {
      "page": "cov_intraclass",
      "title": "Generates a p \\times p intraclass covariance matrix",
      "topics": [
        "cov_intraclass"
      ]
    },
    {
      "page": "cov_list",
      "title": "Computes the covariance-matrix maximum likelihood estimators for each class and returns a list.",
      "topics": [
        "cov_list"
      ]
    },
    {
      "page": "cov_mle",
      "title": "Computes the maximum likelihood estimator for the sample covariance matrix under the assumption of multivariate normality.",
      "topics": [
        "cov_mle"
      ]
    },
    {
      "page": "cov_pool",
      "title": "Computes the pooled maximum likelihood estimator (MLE) for the common covariance matrix",
      "topics": [
        "cov_pool"
      ]
    },
    {
      "page": "cov_shrink_diag",
      "title": "Computes a shrunken version of the maximum likelihood estimator for the sample covariance matrix under the assumption of multivariate normality.",
      "topics": [
        "cov_shrink_diag"
      ]
    },
    {
      "page": "cv_partition",
      "title": "Randomly partitions data for cross-validation.",
      "topics": [
        "cv_partition"
      ]
    },
    {
      "page": "diag_estimates",
      "title": "Computes estimates and ancillary information for diagonal classifiers",
      "topics": [
        "diag_estimates"
      ]
    },
    {
      "page": "dmvnorm_diag",
      "title": "Computes multivariate normal density with a diagonal covariance matrix",
      "topics": [
        "dmvnorm_diag"
      ]
    },
    {
      "page": "generate_blockdiag",
      "title": "Generates data from 'K' multivariate normal data populations, where each population (class) has a covariance matrix consisting of block-diagonal autocorrelation matrices.",
      "topics": [
        "generate_blockdiag"
      ]
    },
    {
      "page": "generate_intraclass",
      "title": "Generates data from 'K' multivariate normal data populations, where each population (class) has an intraclass covariance matrix.",
      "topics": [
        "generate_intraclass"
      ]
    },
    {
      "page": "h",
      "title": "Bias correction function from Pang et al. (2009).",
      "topics": [
        "h"
      ]
    },
    {
      "page": "lda_diag",
      "title": "Diagonal Linear Discriminant Analysis (DLDA)",
      "topics": [
        "lda_diag",
        "lda_diag.default",
        "lda_diag.formula",
        "predict.lda_diag"
      ]
    },
    {
      "page": "lda_eigen",
      "title": "The Minimum Distance Rule using Moore-Penrose Inverse (MDMP) classifier",
      "topics": [
        "lda_eigen",
        "lda_eigen.default",
        "lda_eigen.formula",
        "predict.lda_eigen"
      ]
    },
    {
      "page": "lda_emp_bayes",
      "title": "The Minimum Distance Empirical Bayesian Estimator (MDEB) classifier",
      "topics": [
        "lda_emp_bayes",
        "lda_emp_bayes.default",
        "lda_emp_bayes.formula",
        "predict.lda_emp_bayes"
      ]
    },
    {
      "page": "lda_emp_bayes_eigen",
      "title": "The Minimum Distance Rule using Modified Empirical Bayes (MDMEB) classifier",
      "topics": [
        "lda_emp_bayes_eigen",
        "lda_emp_bayes_eigen.default",
        "lda_emp_bayes_eigen.formula",
        "predict.lda_emp_bayes_eigen"
      ]
    },
    {
      "page": "lda_pseudo",
      "title": "Linear Discriminant Analysis (LDA) with the Moore-Penrose Pseudo-Inverse",
      "topics": [
        "lda_pseudo",
        "lda_pseudo.default",
        "lda_pseudo.formula",
        "predict.lda_pseudo"
      ]
    },
    {
      "page": "lda_schafer",
      "title": "Linear Discriminant Analysis using the Schafer-Strimmer Covariance Matrix Estimator",
      "topics": [
        "lda_schafer",
        "lda_schafer.default",
        "lda_schafer.formula",
        "predict.lda_schafer"
      ]
    },
    {
      "page": "lda_shrink_cov",
      "title": "Shrinkage-based Diagonal Linear Discriminant Analysis (SDLDA)",
      "topics": [
        "lda_shrink_cov",
        "lda_shrink_cov.default",
        "lda_shrink_cov.formula",
        "predict.lda_shrink_cov"
      ]
    },
    {
      "page": "lda_shrink_mean",
      "title": "Shrinkage-mean-based Diagonal Linear Discriminant Analysis (SmDLDA) from Tong, Chen, and Zhao (2012)",
      "topics": [
        "lda_shrink_mean",
        "lda_shrink_mean.default",
        "lda_shrink_mean.formula",
        "predict.lda_shrink_mean"
      ]
    },
    {
      "page": "lda_thomaz",
      "title": "Linear Discriminant Analysis using the Thomaz-Kitani-Gillies Covariance Matrix Estimator",
      "topics": [
        "lda_thomaz",
        "lda_thomaz.default",
        "lda_thomaz.formula",
        "predict.lda_thomaz"
      ]
    },
    {
      "page": "log_determinant",
      "title": "Computes the log determinant of a matrix.",
      "topics": [
        "log_determinant"
      ]
    },
    {
      "page": "no_intercept",
      "title": "Removes the intercept term from a formula if it is included",
      "topics": [
        "no_intercept"
      ]
    },
    {
      "page": "plot.rda_high_dim_cv",
      "title": "Plots a heatmap of cross-validation error grid for a HDRDA classifier object.",
      "topics": [
        "plot.rda_high_dim_cv"
      ]
    },
    {
      "page": "posterior_probs",
      "title": "Computes posterior probabilities via Bayes Theorem under normality",
      "topics": [
        "posterior_probs"
      ]
    },
    {
      "page": "qda_diag",
      "title": "Diagonal Quadratic Discriminant Analysis (DQDA)",
      "topics": [
        "predict.qda_diag",
        "qda_diag",
        "qda_diag.default",
        "qda_diag.formula"
      ]
    },
    {
      "page": "qda_shrink_cov",
      "title": "Shrinkage-based Diagonal Quadratic Discriminant Analysis (SDQDA)",
      "topics": [
        "predict.qda_shrink_cov",
        "qda_shrink_cov",
        "qda_shrink_cov.default",
        "qda_shrink_cov.formula"
      ]
    },
    {
      "page": "qda_shrink_mean",
      "title": "Shrinkage-mean-based Diagonal Quadratic Discriminant Analysis (SmDQDA) from Tong, Chen, and Zhao (2012)",
      "topics": [
        "predict.qda_shrink_mean",
        "qda_shrink_mean",
        "qda_shrink_mean.default",
        "qda_shrink_mean.formula"
      ]
    },
    {
      "page": "quadform",
      "title": "Quadratic form of a matrix and a vector",
      "topics": [
        "quadform"
      ]
    },
    {
      "page": "quadform_inv",
      "title": "Quadratic Form of the inverse of a matrix and a vector",
      "topics": [
        "quadform_inv"
      ]
    },
    {
      "page": "rda_cov",
      "title": "Calculates the RDA covariance-matrix estimators for each class",
      "topics": [
        "rda_cov"
      ]
    },
    {
      "page": "rda_high_dim",
      "title": "High-Dimensional Regularized Discriminant Analysis (HDRDA)",
      "topics": [
        "predict.rda_high_dim",
        "rda_high_dim",
        "rda_high_dim.default",
        "rda_high_dim.formula"
      ]
    },
    {
      "page": "rda_high_dim_cv",
      "title": "Helper function to optimize the HDRDA classifier via cross-validation",
      "topics": [
        "rda_high_dim_cv"
      ]
    },
    {
      "page": "rda_weights",
      "title": "Computes the observation weights for each class for the HDRDA classifier",
      "topics": [
        "rda_weights"
      ]
    },
    {
      "page": "regdiscrim_estimates",
      "title": "Computes estimates and ancillary information for regularized discriminant classifiers",
      "topics": [
        "regdiscrim_estimates"
      ]
    },
    {
      "page": "risk_stein",
      "title": "Stein Risk function from Pang et al. (2009).",
      "topics": [
        "risk_stein"
      ]
    },
    {
      "page": "solve_chol",
      "title": "Computes the inverse of a symmetric, positive-definite matrix using the Cholesky decomposition",
      "topics": [
        "solve_chol"
      ]
    },
    {
      "page": "tong_mean_shrinkage",
      "title": "Tong et al. (2012)'s Lindley-type Shrunken Mean Estimator",
      "topics": [
        "tong_mean_shrinkage"
      ]
    },
    {
      "page": "two_class_sim_data",
      "title": "Example bivariate classification data from caret",
      "topics": [
        "two_class_sim_data"
      ]
    },
    {
      "page": "update_rda_high_dim",
      "title": "Helper function to update tuning parameters for the HDRDA classifier",
      "topics": [
        "update_rda_high_dim"
      ]
    },
    {
      "page": "var_shrinkage",
      "title": "Shrinkage-based estimator of variances for each feature from Pang et al. (2009).",
      "topics": [
        "var_shrinkage"
      ]
    }
  ],
  "_readme": "https://github.com/topepo/sparsediscrim/raw/HEAD/README.md",
  "_rundeps": [
    "bdsmatrix",
    "cli",
    "corpcor",
    "cpp11",
    "dplyr",
    "farver",
    "generics",
    "ggplot2",
    "glue",
    "gtable",
    "isoband",
    "labeling",
    "lifecycle",
    "magrittr",
    "mvtnorm",
    "pillar",
    "pkgconfig",
    "R6",
    "RColorBrewer",
    "rlang",
    "S7",
    "scales",
    "tibble",
    "tidyselect",
    "utf8",
    "vctrs",
    "viridisLite",
    "withr"
  ],
  "_score": 5.184647999197791,
  "_indexed": true,
  "_nocasepkg": "sparsediscrim",
  "_universes": [
    "topepo"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.2.5.9000",
      "date": "2026-05-09T09:21:57.000Z",
      "distro": "noble",
      "commit": "60198a54e0ced0afa3909121eea55321dd04c56f",
      "fileid": "68d291bc6a6646e11d90d54d79a215502c907067ad95c33263cf24a179272c5a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/topepo/actions/runs/25597455979"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.2.5.9000",
      "date": "2026-05-09T09:21:55.000Z",
      "distro": "noble",
      "commit": "60198a54e0ced0afa3909121eea55321dd04c56f",
      "fileid": "ccc2eb96f483e541916d0a0ab99308e874acffbf97e4496f4633c9cf8f0d4700",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/topepo/actions/runs/25597455979"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.2.5.9000",
      "date": "2026-05-09T09:21:39.000Z",
      "commit": "60198a54e0ced0afa3909121eea55321dd04c56f",
      "fileid": "d6f97f0d5e7243bd1bbc9516439db7a7c7b9e59ab4340c805b23192b3a9955d3",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/topepo/actions/runs/25597455979"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.2.5.9000",
      "date": "2026-05-09T09:21:41.000Z",
      "commit": "60198a54e0ced0afa3909121eea55321dd04c56f",
      "fileid": "6b234738215bae69f84554fc56e2566315c7c7cf6d28adf527cc671806dc290d",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/topepo/actions/runs/25597455979"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.2.5.9000",
      "date": "2026-05-09T09:21:20.000Z",
      "commit": "60198a54e0ced0afa3909121eea55321dd04c56f",
      "fileid": "42fa763753b89ebe277d7d44fd2a8f5cff143250b80d7856c83d715381e40b33",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/topepo/actions/runs/25597455979"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.2.5.9000",
      "date": "2026-05-09T09:20:53.000Z",
      "commit": "60198a54e0ced0afa3909121eea55321dd04c56f",
      "fileid": "4a2b955625d6a0df918cdf209addfc7a10e61f8084b2771d67534933d867cb8a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/topepo/actions/runs/25597455979"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.2.5.9000",
      "date": "2026-05-09T09:21:19.000Z",
      "commit": "60198a54e0ced0afa3909121eea55321dd04c56f",
      "fileid": "d774a66de090dbc8c132d5f8ecdbae246cb2bd3767ff8ca3c50968f99bd2127a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/topepo/actions/runs/25597455979"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.2.5.9000",
      "date": "2026-05-22T12:56:56.000Z",
      "commit": "60198a54e0ced0afa3909121eea55321dd04c56f",
      "fileid": "682b67961958c22ca783926384a44ac376aaeec318656d76c1005aa5a44498ab",
      "status": "success",
      "buildurl": "https://github.com/r-universe/topepo/actions/runs/25597455979"
    }
  ]
}