{
  "_id": "6adc71cd1f8fc22f6383e120",
  "Type": "Package",
  "Package": "subsampling",
  "Title": "Optimal Subsampling Methods for Statistical Models",
  "Version": "0.4.0",
  "Date": "2026-06-20",
  "Authors@R": "c(\nperson(\"Qingkai\", \"Dong\", , \"qingkai.dong@uconn.edu\", role = c(\"aut\", \"cre\", \"cph\")),\nperson(\"Yaqiong\", \"Yao\", role = \"aut\"),\nperson(\"Haiying\", \"Wang\", role = \"aut\"),\nperson(\"Qiang\", \"Zhang\", role = \"ctb\"),\nperson(\"Jun\", \"Yan\", role = \"ctb\")\n)",
  "Maintainer": "Qingkai Dong <qingkai.dong@uconn.edu>",
  "Description": "Balancing computational and statistical efficiency,\nsubsampling techniques offer a practical solution for handling\nlarge-scale data analysis. Subsampling methods enhance\nstatistical modeling for massive datasets by efficiently\ndrawing representative subsamples from full dataset based on\ntailored sampling probabilities. These probabilities are\noptimized for specific goals, such as minimizing the variance\nof coefficient estimates or reducing prediction error. Based on\nspecified modeling assumptions and subsampling techniques, the\npackage provides functions to draw subsamples from the full\ndata, fit the model on the subsamples, and perform statistical\ninference.",
  "License": "GPL-3",
  "URL": "https://github.com/dqksnow/subsampling,\nhttps://dqksnow.github.io/subsampling/",
  "BugReports": "https://github.com/dqksnow/Subsampling/issues",
  "Config/testthat/edition": "3",
  "Encoding": "UTF-8",
  "Roxygen": "list(markdown = TRUE)",
  "RoxygenNote": "7.3.2",
  "VignetteBuilder": "knitr",
  "Config/pak/sysreqs": "make",
  "Repository": "https://dqksnow.r-universe.dev",
  "Date/Publication": "2026-06-22 14:34:58 UTC",
  "RemoteUrl": "https://github.com/dqksnow/subsampling",
  "RemoteRef": "HEAD",
  "RemoteSha": "d5a31ed1a864a6dffde2842cbce1a866952b7e81",
  "NeedsCompilation": "yes",
  "Packaged": {
    "Date": "2026-10-24 08:45:32 UTC",
    "User": "root"
  },
  "Author": "Qingkai Dong [aut, cre, cph],\nYaqiong Yao [aut],\nHaiying Wang [aut],\nQiang Zhang [ctb],\nJun Yan [ctb]",
  "_user": "dqksnow",
  "_type": "src",
  "_file": "subsampling_0.4.0.tar.gz",
  "_fileid": "https://r2.ropensci.org/5dc26ff3f649fb34491bc3ac373016e3f5ff358fd06df55b7b9d13a07c1a5797",
  "_filesize": 353718,
  "_sha256": "5dc26ff3f649fb34491bc3ac373016e3f5ff358fd06df55b7b9d13a07c1a5797",
  "_expires": "2027-02-01T08:52:27.000Z",
  "_created": "2026-10-24T08:45:32.000Z",
  "_published": "2026-10-24T08:52:29.116Z",
  "_upstream": "https://github.com/dqksnow/subsampling",
  "_status": "success",
  "_maintainer": {
    "name": "Qingkai Dong",
    "email": "qingkai.dong@uconn.edu",
    "login": "dqksnow",
    "description": "I'm a Statistics beginner, \nenjoying my research career. \nqingkai.dong@uconn.edu",
    "uuid": 61217710
  },
  "_jobs": [
    {
      "job": 120829365604,
      "time": 138,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12554522623"
    },
    {
      "job": 120829365620,
      "time": 151,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12554905602"
    },
    {
      "job": 120829365597,
      "time": 164,
      "config": "linux-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12554127712"
    },
    {
      "job": 120829365624,
      "time": 175,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12554333644"
    },
    {
      "job": 120829365614,
      "time": 312,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "12554292458"
    },
    {
      "job": 120829365587,
      "time": 300,
      "config": "macos-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "12554237644"
    },
    {
      "job": 120829365572,
      "time": 206,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12554831003"
    },
    {
      "job": 120829365631,
      "time": 326,
      "config": "macos-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12554821135"
    },
    {
      "job": 120828086259,
      "time": 397,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12554507524"
    },
    {
      "job": 120829365563,
      "time": 105,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "12555030073"
    },
    {
      "job": 120829365543,
      "time": 361,
      "config": "windows-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12554802261"
    },
    {
      "job": 120829365575,
      "time": 168,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12554721149"
    },
    {
      "job": 120829365554,
      "time": 128,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "12554193862"
    },
    {
      "job": 120829365623,
      "time": 355,
      "config": "windows-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12555105154"
    },
    {
      "job": 120829365622,
      "time": 143,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12554616397"
    }
  ],
  "_buildurl": "https://github.com/r-universe/dqksnow/actions/runs/40078859950",
  "_commit": {
    "id": "d5a31ed1a864a6dffde2842cbce1a866952b7e81",
    "author": "Qingkai Dong <406023933@qq.com>",
    "committer": "Qingkai Dong <406023933@qq.com>",
    "message": "Update CRAN-SUBMISSION\n",
    "time": 1782138898
  },
  "_distro": "resolute",
  "_host": "GitHub-Actions",
  "_registered": true,
  "_dependencies": [
    {
      "package": "Rcpp",
      "role": "LinkingTo"
    },
    {
      "package": "RcppArmadillo",
      "role": "LinkingTo"
    },
    {
      "package": "expm",
      "role": "Imports"
    },
    {
      "package": "nnet",
      "role": "Imports"
    },
    {
      "package": "quantreg",
      "role": "Imports"
    },
    {
      "package": "Rcpp",
      "version": ">= 1.0.12",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "survey",
      "role": "Imports"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "MASS",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "tinytest",
      "role": "Suggests"
    }
  ],
  "_owner": "dqksnow",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2025-48",
      "n": 1
    },
    {
      "week": "2025-49",
      "n": 3
    },
    {
      "week": "2026-11",
      "n": 1
    },
    {
      "week": "2026-25",
      "n": 1
    },
    {
      "week": "2026-26",
      "n": 1
    }
  ],
  "_tags": [],
  "_stars": 7,
  "_contributors": [
    {
      "user": "dqksnow",
      "count": 85,
      "uuid": 61217710
    }
  ],
  "_userbio": {
    "uuid": 61217710,
    "type": "user",
    "name": "Qingkai Dong",
    "followers": 10,
    "description": "I'm a Statistics beginner, \r\nenjoying my research career. \r\nqingkai.dong@uconn.edu"
  },
  "_downloads": {
    "count": 488,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/subsampling"
  },
  "_devurl": "https://github.com/dqksnow/subsampling",
  "_pkgdown": "https://dqksnow.github.io/subsampling/",
  "_searchresults": 12,
  "_topics": [
    "openblas",
    "cpp"
  ],
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/manual.pdf",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "extra/subsampling.html"
  ],
  "_homeurl": "https://github.com/dqksnow/subsampling",
  "_realowner": "dqksnow",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.1.1",
      "date": "2024-11-05"
    },
    {
      "version": "0.3.0",
      "date": "2026-03-10"
    },
    {
      "version": "0.4.0",
      "date": "2026-06-21"
    }
  ],
  "_exports": [
    "ssp.glm",
    "ssp.glm.rF",
    "ssp.quantreg",
    "ssp.relogit",
    "ssp.softmax"
  ],
  "_help": [
    {
      "page": "ssp.glm",
      "title": "Optimal Subsampling Methods for Generalized Linear Models",
      "topics": [
        "ssp.glm"
      ]
    },
    {
      "page": "ssp.glm.rF",
      "title": "Balanced Subsampling Methods for Generalized Linear Models with Rare Features",
      "topics": [
        "ssp.glm.rF"
      ]
    },
    {
      "page": "ssp.quantreg",
      "title": "Optimal Subsampling Methods for Quantile Regression Model",
      "topics": [
        "ssp.quantreg"
      ]
    },
    {
      "page": "ssp.relogit",
      "title": "Optimal Subsampling for Logistic Regression Model with Rare Events Data",
      "topics": [
        "ssp.relogit"
      ]
    },
    {
      "page": "ssp.softmax",
      "title": "Optimal Subsampling Method for Softmax (multinomial logistic) Regression Model",
      "topics": [
        "ssp.softmax"
      ]
    },
    {
      "page": "subsampling",
      "title": "Optimal Subsampling Methods for Statistical Models",
      "topics": [
        "subsampling-package",
        "subsampling"
      ]
    }
  ],
  "_readme": "https://github.com/dqksnow/subsampling/raw/HEAD/README.md",
  "_rundeps": [
    "DBI",
    "expm",
    "lattice",
    "MASS",
    "Matrix",
    "MatrixModels",
    "minqa",
    "mitools",
    "nnet",
    "numDeriv",
    "quantreg",
    "Rcpp",
    "RcppArmadillo",
    "SparseM",
    "survey",
    "survival"
  ],
  "_sysdeps": [
    {
      "shlib": "libblas",
      "package": "libopenblas0-pthread",
      "source": "openblas",
      "version": "0.3.32+ds-5",
      "name": "openblas",
      "homepage": "https://www.openblas.net/",
      "description": "Optimized BLAS (linear algebra) library (shared lib, pthread)"
    },
    {
      "shlib": "libstdc++",
      "package": "libstdc++6",
      "source": "gcc",
      "version": "16-20260322-1ubuntu1",
      "name": "c++",
      "homepage": "http://gcc.gnu.org/",
      "description": "GNU Standard C++ Library v3"
    }
  ],
  "_vignettes": [
    {
      "source": "ssp-logit-rF.Rmd",
      "filename": "ssp-logit-rF.html",
      "title": "ssp.glm.rF: Balanced Subsampling for Preserving Rare Features in Generalized Linear Models",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Setup",
        "Simulated Logistic Regression Example",
        "One-Step Balanced Sampling",
        "Two-Step Rareness-Aware Optimal Subsampling",
        "Automatically Account for Rarity if rareFeature.index = NULL",
        "Balancing the Outcome for Logistic Regression",
        "Objective Weights",
        "Control Options",
        "Non-Binomial Families"
      ],
      "created": "2025-12-04 20:29:36",
      "modified": "2026-06-21 01:43:51",
      "commits": 3
    },
    {
      "source": "ssp-logit.Rmd",
      "filename": "ssp-logit.html",
      "title": "ssp.glm: Optimal Subsampling for Generalized Linear Models",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Model and Objective",
        "Two Ways ssp.glm() Works",
        "Pilot Estimator",
        "$$\\pi_i^",
        "Choosing criterion",
        "criterion = \"optA\"",
        "criterion = \"optL\"",
        "criterion = \"LCC\"",
        "criterion = \"uniform\"",
        "Choosing sampling.method",
        "sampling.method = \"withReplacement\"",
        "sampling.method = \"poisson\"",
        "Choosing likelihood",
        "likelihood = \"weighted\"",
        "likelihood = \"logOddsCorrection\"",
        "$$P(Y_i = 1 \\mid x_i, i \\in S)",
        "Method Summary",
        "Example Data",
        "Example 1: Default Optimal Subsampling",
        "Example 2: Logistic Poisson Correction",
        "Example 3: Uniform Baseline",
        "Returned Object",
        "Other Families",
        "References"
      ],
      "created": "2024-08-16 02:51:13",
      "modified": "2026-06-21 01:43:51",
      "commits": 10
    },
    {
      "source": "ssp-quantreg.Rmd",
      "filename": "ssp-quantreg.html",
      "title": "ssp.quantreg: Subsampling for Quantile Regression",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Terminology",
        "Example",
        "Key Arguments",
        "criterion",
        "sampling.method",
        "likelihood",
        "boot and B",
        "Outputs",
        "Returned object",
        "References"
      ],
      "created": "2024-10-14 16:28:27",
      "modified": "2026-06-21 01:43:51",
      "commits": 7
    },
    {
      "source": "ssp-relogit.Rmd",
      "filename": "ssp-relogit.html",
      "title": "ssp.relogit: Optimal Subsampling for Logistic Regression with Rare Events",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Model and Rare-Event Setting",
        "How ssp.relogit() Works",
        "Pilot Estimator",
        "Choosing criterion",
        "criterion = \"optA\"",
        "criterion = \"optL\"",
        "criterion = \"LCC\"",
        "criterion = \"uniform\"",
        "Negative-Sampling Probabilities",
        "Choosing likelihood",
        "likelihood = \"weighted\"",
        "likelihood = \"logOddsCorrection\"",
        "$$P(Y_i = 1 \\mid x_i, i \\in S)",
        "Method Summary",
        "Example Data",
        "Example 1: Default Rare-Event Fit",
        "Example 2: A-Optimal Criterion",
        "Example 3: Uniform Baseline",
        "Returned Object",
        "References"
      ],
      "created": "2024-10-14 16:28:27",
      "modified": "2026-06-21 01:43:51",
      "commits": 6
    },
    {
      "source": "ssp-softmax.Rmd",
      "filename": "ssp-softmax.html",
      "title": "ssp.softmax: Subsampling for Softmax (Multinomial) Regression Model",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Terminology",
        "Example",
        "Key Arguments",
        "criterion",
        "sampling.method",
        "likelihood",
        "constraint",
        "Outputs",
        "References"
      ],
      "created": "2024-08-27 01:45:18",
      "modified": "2026-06-21 01:43:51",
      "commits": 8
    },
    {
      "source": "subsampling-algorithms.Rmd",
      "filename": "subsampling-algorithms.html",
      "title": "Algorithmic Structure of Optimal Subsampling",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Full-Data Problem",
        "Step 1: Pilot Estimation",
        "Step 2: Calculate Raw Importance Scores",
        "Step 3: Construct Probabilities and Draw the Second-Step Subsample",
        "Step 4: Fit a Corrected Subsample Objective Function",
        "Step 5: Optional Combination",
        "$$\\widehat",
        "Function Map",
        "Checking Points"
      ],
      "created": "2026-06-21 01:43:51",
      "modified": "2026-06-21 01:43:51",
      "commits": 1
    }
  ],
  "_score": 6.100370545117563,
  "_indexed": true,
  "_nocasepkg": "subsampling",
  "_universes": [
    "dqksnow"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.4.0",
      "date": "2026-10-24T08:47:43.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "d5a31ed1a864a6dffde2842cbce1a866952b7e81",
      "fileid": "https://r2.ropensci.org/f1f97ec4e59cf73789c3bae26e2691423e51ee08e18c25fd7bcde06d9c5da98c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/dqksnow/actions/runs/40078859950"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.4.0",
      "date": "2026-10-24T08:47:42.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "d5a31ed1a864a6dffde2842cbce1a866952b7e81",
      "fileid": "https://r2.ropensci.org/b858803f20b6389185b02ccc45f8586a2516e7b312b65c2760c566f3eae0e9a4",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/dqksnow/actions/runs/40078859950"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.4.0",
      "date": "2026-10-24T08:48:08.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "d5a31ed1a864a6dffde2842cbce1a866952b7e81",
      "fileid": "https://r2.ropensci.org/f895e7732ca0527bbb13ef1fd3be6df3b7adbc6005cb7487c47e0ffaa4b006d7",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/dqksnow/actions/runs/40078859950"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.4.0",
      "date": "2026-10-24T08:48:12.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "d5a31ed1a864a6dffde2842cbce1a866952b7e81",
      "fileid": "https://r2.ropensci.org/43f609b6df313f6faa6e131953add05be3042f027959e534ad5cde7ae7f51c7d",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/dqksnow/actions/runs/40078859950"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.4.0",
      "date": "2026-10-24T08:49:09.000Z",
      "arch": "aarch64",
      "commit": "d5a31ed1a864a6dffde2842cbce1a866952b7e81",
      "fileid": "https://r2.ropensci.org/3a1e087af804cb2c8980aff9fc9316d362acf49fd91b7834aa6e967ecf764c5e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/dqksnow/actions/runs/40078859950"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.4.0",
      "date": "2026-10-24T08:49:35.000Z",
      "arch": "x86_64",
      "commit": "d5a31ed1a864a6dffde2842cbce1a866952b7e81",
      "fileid": "https://r2.ropensci.org/cfa2e0ab3188feb5a5e78cfcaf76e6f5cc2f7e746bd14a1113334a3864429b78",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/dqksnow/actions/runs/40078859950"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.4.0",
      "date": "2026-10-24T08:48:00.000Z",
      "arch": "aarch64",
      "commit": "d5a31ed1a864a6dffde2842cbce1a866952b7e81",
      "fileid": "https://r2.ropensci.org/5cb10db61a8bd33c904f4fe1fc262643db20f30818ad00bf12cb4e6663f876c5",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/dqksnow/actions/runs/40078859950"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.4.0",
      "date": "2026-10-24T08:49:22.000Z",
      "arch": "x86_64",
      "commit": "d5a31ed1a864a6dffde2842cbce1a866952b7e81",
      "fileid": "https://r2.ropensci.org/58e9b8c5e518f6131c29df8a0cb39d35deaea6e4dda671d66e565eba791c7730",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/dqksnow/actions/runs/40078859950"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.4.0",
      "date": "2026-10-24T08:47:35.000Z",
      "arch": "emscripten",
      "commit": "d5a31ed1a864a6dffde2842cbce1a866952b7e81",
      "fileid": "https://r2.ropensci.org/120b6e1d3613d285289e976d0952d9e163b85254413f77b70187b8afd11bb74b",
      "status": "success",
      "buildurl": "https://github.com/r-universe/dqksnow/actions/runs/40078859950"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.4.0",
      "date": "2026-10-24T08:50:42.000Z",
      "arch": "aarch64",
      "commit": "d5a31ed1a864a6dffde2842cbce1a866952b7e81",
      "fileid": "https://r2.ropensci.org/92d0d7696579f7681a038190313b4ad70ca9fed32ceb3afd2dff585baccd8d17",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/dqksnow/actions/runs/40078859950"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.4.0",
      "date": "2026-10-24T08:46:53.000Z",
      "arch": "x86_64",
      "commit": "d5a31ed1a864a6dffde2842cbce1a866952b7e81",
      "fileid": "https://r2.ropensci.org/3734e0fbd22a155293b07323b08a7a4e28f49358f105f631e235ae32c816a0fb",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/dqksnow/actions/runs/40078859950"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.4.0",
      "date": "2026-10-24T08:46:49.000Z",
      "arch": "x86_64",
      "commit": "d5a31ed1a864a6dffde2842cbce1a866952b7e81",
      "fileid": "https://r2.ropensci.org/3e573bdacef35f5a445764b2c6b964c8c2e7069d654a301f2f2c3f49c6ac7376",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/dqksnow/actions/runs/40078859950"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.4.0",
      "date": "2026-10-24T08:50:24.000Z",
      "arch": "aarch64",
      "commit": "d5a31ed1a864a6dffde2842cbce1a866952b7e81",
      "fileid": "https://r2.ropensci.org/e128d94320262e27a25ec9048ed27186f7804e18327ab3fd8aaac267add86090",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/dqksnow/actions/runs/40078859950"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.4.0",
      "date": "2026-10-24T08:47:06.000Z",
      "arch": "x86_64",
      "commit": "d5a31ed1a864a6dffde2842cbce1a866952b7e81",
      "fileid": "https://r2.ropensci.org/a8df4b433ffd384d12522933ff2378a6e447b974811837a9674530455c67bb20",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/dqksnow/actions/runs/40078859950"
    }
  ]
}