{
  "_id": "6a12b35cacfb0bcc41d19edf",
  "Package": "scR",
  "Title": "Estimate Vapnik-Chervonenkis Dimension and Sample Complexity",
  "Version": "0.4.0",
  "Authors@R": "c(person(\"Perry\", \"Carter\", , \"pjc504@nyu.edu\", role = c(\"aut\", \"cre\"),\ncomment = c(ORCID = \"0000-0002-4684-6533\")),\nperson(\"Dahyun\", \"Choi\", , \"dahyunc@princeton.edu\", role = c(\"aut\"),\ncomment = c(ORCID = \"0000-0002-2628-1467\")))",
  "Description": "We provide a suite of tools for estimating the sample\ncomplexity of a chosen model through theoretical bounds and\nsimulation. The package incorporates methods for estimating the\nVapnik-Chervonenkis dimension (VCD) of a chosen algorithm,\nwhich can be used to estimate its sample complexity.\nAlternatively, we provide simulation methods to estimate sample\ncomplexity directly. For more details, see Carter, P & Choi, D\n(2024). \"Learning from Noise: Applying Sample Complexity for\nPolitical Science Research\" <doi:10.31219/osf.io/evrcj>.",
  "Encoding": "UTF-8",
  "RoxygenNote": "7.3.2",
  "URL": "https://github.com/pjesscarter/scR",
  "BugReports": "https://github.com/pjesscarter/scR/issues",
  "LazyData": "true",
  "LazyDataCompression": "xz",
  "License": "MIT + file LICENSE",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-05-24 08:08:08 UTC",
    "User": "root"
  },
  "Author": "Perry Carter [aut, cre]\n(<https://orcid.org/0000-0002-4684-6533>), Dahyun Choi [aut]\n(<https://orcid.org/0000-0002-2628-1467>)",
  "Maintainer": "Perry Carter <pjc504@nyu.edu>",
  "Repository": "https://cran.r-universe.dev",
  "Date/Publication": "2024-12-23 12:30:02 UTC",
  "RemoteUrl": "https://github.com/cran/scR",
  "RemoteRef": "HEAD",
  "RemoteSha": "4cd186ff04f2271ae5b91409ae4cd1eccb79e643",
  "MD5sum": "05140a732aaed92c10f4a8269b4b3b08",
  "_user": "cran",
  "_type": "src",
  "_file": "scR_0.4.0.tar.gz",
  "_fileid": "68cb689628038f11a1e15c017fc32fd275bc41fea93bba7ae66e198ba44c7c31",
  "_filesize": 2975920,
  "_sha256": "68cb689628038f11a1e15c017fc32fd275bc41fea93bba7ae66e198ba44c7c31",
  "_created": "2026-05-24T08:08:08.000Z",
  "_published": "2026-05-24T08:14:20.415Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 77582653505,
      "time": 279,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7183560111"
    },
    {
      "job": 77582653504,
      "time": 264,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7183558822"
    },
    {
      "job": 77582375412,
      "time": 320,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7183531177"
    },
    {
      "job": 77582653502,
      "time": 198,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7183552451"
    }
  ],
  "_buildurl": "https://github.com/r-universe/cran/actions/runs/26355778682",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/cran/scR",
  "_commit": {
    "id": "4cd186ff04f2271ae5b91409ae4cd1eccb79e643",
    "author": "Perry Carter <pjc504@nyu.edu>",
    "committer": "cran-robot <csardi.gabor+cran@gmail.com>",
    "message": "version 0.4.0\n",
    "time": 1734957002
  },
  "_maintainer": {
    "name": "Perry Carter",
    "email": "pjc504@nyu.edu",
    "orcid": "0000-0002-4684-6533"
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 2.10",
      "role": "Depends"
    },
    {
      "package": "parallel",
      "role": "Imports"
    },
    {
      "package": "pbapply",
      "role": "Imports"
    },
    {
      "package": "caret",
      "role": "Imports"
    },
    {
      "package": "dplyr",
      "role": "Imports"
    },
    {
      "package": "tidyr",
      "role": "Imports"
    },
    {
      "package": "ggplot2",
      "role": "Imports"
    },
    {
      "package": "plotly",
      "role": "Imports"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    }
  ],
  "_owner": "cran",
  "_selfowned": false,
  "_usedby": 0,
  "_updates": [],
  "_tags": [],
  "_stars": 0,
  "_userbio": {
    "uuid": 6899542,
    "type": "organization",
    "name": "cran",
    "description": "Unofficial read-only mirror of all CRAN R packages"
  },
  "_downloads": {
    "count": 213,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/scR"
  },
  "_devurl": "https://github.com/pjesscarter/scr",
  "_searchresults": 2,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/readme.html",
    "extra/readme.md",
    "extra/scR.html",
    "manual.pdf"
  ],
  "_realowner": "cran",
  "_cranurl": false,
  "_releases": [
    {
      "version": "0.1.0",
      "date": "2024-12-02"
    },
    {
      "version": "0.2.0",
      "date": "2024-12-16"
    },
    {
      "version": "0.3.0",
      "date": "2024-12-18"
    },
    {
      "version": "0.4.0",
      "date": "2024-12-23"
    }
  ],
  "_exports": [
    "acc_sim",
    "estimate_accuracy",
    "gendata",
    "getpac",
    "plot_accuracy",
    "scb",
    "simvcd"
  ],
  "_datasets": [
    {
      "name": "br",
      "title": "Replication data for 'Predicting Recidivism'",
      "object": "br",
      "class": [
        "data.frame"
      ],
      "fields": [
        "id",
        "race",
        "sex",
        "age",
        "juv_fel_count",
        "juv_misd_count",
        "priors_count",
        "charge_id",
        "charge_degree..misd.fel.",
        "compas_decile_score",
        "two_year_recid",
        "compas_guess",
        "compas_correct",
        "mturk_charge_name"
      ],
      "rows": 7214,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "acc_sim",
      "title": "Utility function to generate accuracy metrics, for use with 'estimate_accuracy()'",
      "topics": [
        "acc_sim"
      ]
    },
    {
      "page": "br",
      "title": "Replication data for 'Predicting Recidivism'",
      "topics": [
        "br"
      ]
    },
    {
      "page": "estimate_accuracy",
      "title": "Estimate sample complexity bounds for a binary classification algorithm using either simulated or user-supplied data.",
      "topics": [
        "estimate_accuracy"
      ]
    },
    {
      "page": "gendata",
      "title": "Simulate data with appropriate structure to be used in estimating sample complexity bounds",
      "topics": [
        "gendata"
      ]
    },
    {
      "page": "getpac",
      "title": "Recalculate achieved sample complexity bounds given different parameter inputs",
      "topics": [
        "getpac"
      ]
    },
    {
      "page": "loss",
      "title": "Utility function to define the least-squares loss function to be optimized for 'simvcd()'",
      "topics": [
        "loss"
      ]
    },
    {
      "page": "plot_accuracy",
      "title": "Represent simulated sample complexity bounds graphically",
      "topics": [
        "plot_accuracy"
      ]
    },
    {
      "page": "risk_bounds",
      "title": "Utility function to generate data points for estimation of the VC Dimension of a user-specified binary classification algorithm given a specified sample size.",
      "topics": [
        "risk_bounds"
      ]
    },
    {
      "page": "scb",
      "title": "Calculate sample complexity bounds for a classifier given target accuracy",
      "topics": [
        "scb"
      ]
    },
    {
      "page": "simvcd",
      "title": "Estimate the Vapnik-Chervonenkis (VC) dimension of an arbitrary binary classification algorithm.",
      "topics": [
        "simvcd"
      ]
    }
  ],
  "_readme": "https://github.com/cran/scR/raw/HEAD/README.md",
  "_rundeps": [
    "askpass",
    "base64enc",
    "bslib",
    "cachem",
    "caret",
    "class",
    "cli",
    "clock",
    "codetools",
    "cpp11",
    "crosstalk",
    "curl",
    "data.table",
    "diagram",
    "digest",
    "dplyr",
    "e1071",
    "evaluate",
    "farver",
    "fastmap",
    "fontawesome",
    "foreach",
    "fs",
    "future",
    "future.apply",
    "generics",
    "ggplot2",
    "globals",
    "glue",
    "gower",
    "gtable",
    "hardhat",
    "highr",
    "htmltools",
    "htmlwidgets",
    "httr",
    "ipred",
    "isoband",
    "iterators",
    "jquerylib",
    "jsonlite",
    "KernSmooth",
    "knitr",
    "labeling",
    "later",
    "lattice",
    "lava",
    "lazyeval",
    "lifecycle",
    "listenv",
    "lubridate",
    "magrittr",
    "MASS",
    "Matrix",
    "memoise",
    "mime",
    "ModelMetrics",
    "nlme",
    "nnet",
    "numDeriv",
    "openssl",
    "otel",
    "parallelly",
    "pbapply",
    "pillar",
    "pkgconfig",
    "plotly",
    "plyr",
    "pROC",
    "prodlim",
    "progressr",
    "promises",
    "proxy",
    "purrr",
    "R6",
    "rappdirs",
    "RColorBrewer",
    "Rcpp",
    "recipes",
    "reshape2",
    "rlang",
    "rmarkdown",
    "rpart",
    "S7",
    "sass",
    "scales",
    "shape",
    "sparsevctrs",
    "SQUAREM",
    "stringi",
    "stringr",
    "survival",
    "sys",
    "tibble",
    "tidyr",
    "tidyselect",
    "timechange",
    "timeDate",
    "tinytex",
    "tzdb",
    "utf8",
    "vctrs",
    "viridisLite",
    "withr",
    "xfun",
    "yaml"
  ],
  "_score": 1.6989700043360187,
  "_indexed": true,
  "_nocasepkg": "scr",
  "_universes": [
    "cran",
    "pjesscarter"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.4.0",
      "date": "2026-05-24T08:11:24.000Z",
      "distro": "noble",
      "commit": "4cd186ff04f2271ae5b91409ae4cd1eccb79e643",
      "fileid": "256a6b4b684893f75b805775b38714e5d936589055f553a76cacd7cf544cef90",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/26355778682"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.4.0",
      "date": "2026-05-24T08:11:19.000Z",
      "distro": "noble",
      "commit": "4cd186ff04f2271ae5b91409ae4cd1eccb79e643",
      "fileid": "60374996d40f6f233e49abbfbcddeae7163e3b9c8ba797ab11a2349f69419b0a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/26355778682"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.4.0",
      "date": "2026-05-24T08:11:38.000Z",
      "commit": "4cd186ff04f2271ae5b91409ae4cd1eccb79e643",
      "fileid": "0c4751eb35d597ac182b1dc3a7c3c4b96d02415349c27899d0bafefd5cf3a423",
      "status": "success",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/26355778682"
    }
  ]
}