{
  "_id": "6ac35db2d743750d376db00f",
  "Package": "StratifiedSampling",
  "Type": "Package",
  "Title": "Different Methods for Stratified Sampling",
  "Version": "0.4.2",
  "Authors@R": "c(\nperson(\"Raphael\", \"Jauslin\", email = \"raphael.jauslin@bfs.admin.ch\",role = c(\"aut\", \"cre\"),comment = c(ORCID = \"0000-0003-1088-3356\")),\nperson(\"Esther\", \"Eustache\", email = \"esther.eustache@unine.ch\",role = c(\"aut\")),\nperson(\"Bardia\", \"Panahbehagh\", email = \"bardia.panahbehagh@unine.ch\",role = c(\"aut\"),comment = c(ORCID = \"0000-0001-9122-7777\")),\nperson(\"Yves\", \"Tillé\",role = c(\"aut\"),comment = c(ORCID = \"0000-0003-0904-5523\"))\n)",
  "Description": "Integrating a stratified structure in the population in a\nsampling design can considerably reduce the variance of the\nHorvitz-Thompson estimator. We propose in this package\ndifferent methods to handle the selection of a balanced sample\nin stratified population. For more details see Raphaël Jauslin,\nEsther Eustache and Yves Tillé (2021)\n<doi:10.1007/s42081-021-00134-y>. The package propose also a\nmethod based on optimal transport and balanced sampling, see\nRaphaël Jauslin and Yves Tillé\n<doi:10.1016/j.jspi.2022.12.003>.",
  "URL": "https://github.com/RJauslin/StratifiedSampling",
  "BugReports": "https://github.com/RJauslin/StratifiedSampling/issues",
  "License": "GPL (>= 2)",
  "Encoding": "UTF-8",
  "RoxygenNote": "7.3.2",
  "VignetteBuilder": "knitr",
  "NeedsCompilation": "yes",
  "Packaged": {
    "Date": "2026-10-05 08:13:55 UTC",
    "User": "root"
  },
  "Author": "Raphael Jauslin [aut, cre]\n(<https://orcid.org/0000-0003-1088-3356>), Esther Eustache\n[aut], Bardia Panahbehagh [aut]\n(<https://orcid.org/0000-0001-9122-7777>), Yves Tillé [aut]\n(<https://orcid.org/0000-0003-0904-5523>)",
  "Maintainer": "Raphael Jauslin <raphael.jauslin@bfs.admin.ch>",
  "Repository": "https://cran.r-universe.dev",
  "Date/Publication": "2025-01-31 16:20:02 UTC",
  "RemoteUrl": "https://github.com/cran/StratifiedSampling",
  "RemoteRef": "HEAD",
  "RemoteSha": "5247c1cad608633ae93856402ea097e104a4e629",
  "_user": "cran",
  "_type": "src",
  "_file": "StratifiedSampling_0.4.2.tar.gz",
  "_fileid": "https://r2.ropensci.org/ea709ec28fb0d59c3c760219d86fb51676c58cfe0ddfbaa6ca800fe8b729a858",
  "_filesize": 314781,
  "_sha256": "ea709ec28fb0d59c3c760219d86fb51676c58cfe0ddfbaa6ca800fe8b729a858",
  "_expires": "2027-01-13T08:20:00.000Z",
  "_created": "2026-10-05T08:13:55.000Z",
  "_published": "2026-10-05T08:20:02.548Z",
  "_jobs": [
    {
      "job": 111673405531,
      "time": 201,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "NOTE",
      "artifact": "11331864970"
    },
    {
      "job": 111673405530,
      "time": 188,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "NOTE",
      "artifact": "11333330006"
    },
    {
      "job": 111673405621,
      "time": 152,
      "config": "linux-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11331904653"
    },
    {
      "job": 111673405665,
      "time": 218,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11333008013"
    },
    {
      "job": 111671950160,
      "time": 252,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11333070121"
    },
    {
      "job": 111673405437,
      "time": 162,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "11332489848"
    },
    {
      "job": 111673405613,
      "time": 292,
      "config": "windows-devel-arm64",
      "r": "4.7.0",
      "check": "NOTE",
      "artifact": "11333175755"
    },
    {
      "job": 111673405629,
      "time": 236,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "NOTE",
      "artifact": "11333225585"
    },
    {
      "job": 111673405532,
      "time": 286,
      "config": "windows-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11333091304"
    },
    {
      "job": 111673405669,
      "time": 188,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11331904737"
    }
  ],
  "_host": "GitHub-Actions",
  "_buildurl": "https://github.com/r-universe/cran/actions/runs/37281940908",
  "_status": "success",
  "_upstream": "https://github.com/cran/StratifiedSampling",
  "_commit": {
    "id": "5247c1cad608633ae93856402ea097e104a4e629",
    "author": "Raphael Jauslin <raphael.jauslin@bfs.admin.ch>",
    "committer": "cran-robot <csardi.gabor+cran@gmail.com>",
    "message": "version 0.4.2\n",
    "time": 1738340402
  },
  "_maintainer": {
    "name": "Raphael Jauslin",
    "email": "raphael.jauslin@bfs.admin.ch",
    "login": "rjauslinbfs",
    "description": "",
    "uuid": 228726845,
    "orcid": "0000-0003-1088-3356"
  },
  "_distro": "resolute",
  "_registered": true,
  "_dependencies": [
    {
      "package": "Matrix",
      "role": "Depends"
    },
    {
      "package": "R",
      "version": ">= 3.5.0",
      "role": "Depends"
    },
    {
      "package": "RcppArmadillo",
      "role": "LinkingTo"
    },
    {
      "package": "Rcpp",
      "role": "LinkingTo"
    },
    {
      "package": "Rcpp",
      "role": "Imports"
    },
    {
      "package": "transport",
      "role": "Imports"
    },
    {
      "package": "proxy",
      "role": "Imports"
    },
    {
      "package": "MASS",
      "role": "Imports"
    },
    {
      "package": "sampling",
      "role": "Imports"
    },
    {
      "package": "Rglpk",
      "role": "Imports"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "BalancedSampling",
      "role": "Suggests"
    },
    {
      "package": "stats",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "role": "Suggests"
    },
    {
      "package": "StatMatch",
      "role": "Suggests"
    },
    {
      "package": "laeken",
      "role": "Suggests"
    },
    {
      "package": "prettydoc",
      "role": "Suggests"
    },
    {
      "package": "ggplot2",
      "role": "Suggests"
    },
    {
      "package": "viridis",
      "role": "Suggests"
    },
    {
      "package": "geojsonio",
      "role": "Suggests"
    },
    {
      "package": "sf",
      "role": "Suggests"
    },
    {
      "package": "rmapshaper",
      "role": "Suggests"
    }
  ],
  "_owner": "cran",
  "_selfowned": false,
  "_usedby": 0,
  "_updates": [],
  "_tags": [],
  "_stars": 0,
  "_contributors": [
    {
      "user": "rjauslinbfs",
      "count": 1,
      "uuid": 228726845
    }
  ],
  "_userbio": {
    "uuid": 6899542,
    "type": "organization",
    "name": "cran",
    "followers": 631,
    "description": "Unofficial read-only mirror of all CRAN R packages"
  },
  "_downloads": {
    "count": 363,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/StratifiedSampling"
  },
  "_devurl": "https://github.com/rjauslin/stratifiedsampling",
  "_searchresults": 10,
  "_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/StratifiedSampling.html"
  ],
  "_homeurl": "https://github.com/rjauslin/stratifiedsampling",
  "_realowner": "rjauslin",
  "_cranurl": false,
  "_releases": [
    {
      "version": "0.1.0",
      "date": "2021-01-26"
    },
    {
      "version": "0.2.0",
      "date": "2021-05-20"
    },
    {
      "version": "0.3.0",
      "date": "2021-09-24"
    },
    {
      "version": "0.4.0",
      "date": "2022-10-21"
    },
    {
      "version": "0.4.1",
      "date": "2022-10-26"
    },
    {
      "version": "0.4.2",
      "date": "2025-01-31"
    }
  ],
  "_exports": [
    "balseq",
    "balstrat",
    "bsmatch",
    "c_bound",
    "c_bound2",
    "calibRaking",
    "cps",
    "disj",
    "disjMatrix",
    "distUnitk",
    "fbs",
    "ffphase",
    "findB",
    "gencalibRaking",
    "harmonize",
    "inclprob",
    "landingRM",
    "maxentpi2",
    "ncat",
    "osod",
    "otmatch",
    "pikfromq",
    "piktfrompik",
    "qfromw",
    "sfromq",
    "stratifiedcube",
    "sys_deville",
    "sys_devillepi2",
    "vApp",
    "varApp",
    "varEst",
    "vDBS",
    "vEst"
  ],
  "_help": [
    {
      "page": "balseq",
      "title": "Sequential balanced sampling",
      "topics": [
        "balseq"
      ]
    },
    {
      "page": "balstrat",
      "title": "Balanced Stratification",
      "topics": [
        "balstrat"
      ]
    },
    {
      "page": "bsmatch",
      "title": "Statistical matching using optimal transport and balanced sampling",
      "topics": [
        "bsmatch"
      ]
    },
    {
      "page": "c_bound",
      "title": "C bound",
      "topics": [
        "c_bound"
      ]
    },
    {
      "page": "c_bound2",
      "title": "C bound",
      "topics": [
        "c_bound2"
      ]
    },
    {
      "page": "calibRaking",
      "title": "Calibration using raking ratio",
      "topics": [
        "calibRaking"
      ]
    },
    {
      "page": "cps",
      "title": "Conditional Poisson sampling design",
      "topics": [
        "cps"
      ]
    },
    {
      "page": "disj",
      "title": "Disjunctive",
      "topics": [
        "disj"
      ]
    },
    {
      "page": "disjMatrix",
      "title": "Disjunctive for matrix",
      "topics": [
        "disjMatrix"
      ]
    },
    {
      "page": "distUnitk",
      "title": "Squared Euclidean distances of the unit k.",
      "topics": [
        "distUnitk"
      ]
    },
    {
      "page": "fbs",
      "title": "Fast Balanced Sampling",
      "topics": [
        "fbs"
      ]
    },
    {
      "page": "ffphase",
      "title": "Fast flight phase of the cube method",
      "topics": [
        "ffphase"
      ]
    },
    {
      "page": "findB",
      "title": "Find best sub-matrix B in stratifiedcube",
      "topics": [
        "findB"
      ]
    },
    {
      "page": "gencalibRaking",
      "title": "Generalized calibration using raking ratio",
      "topics": [
        "gencalibRaking"
      ]
    },
    {
      "page": "harmonize",
      "title": "Harmonization by calibration",
      "topics": [
        "harmonize"
      ]
    },
    {
      "page": "inclprob",
      "title": "Inclusion Probabilities",
      "topics": [
        "inclprob"
      ]
    },
    {
      "page": "landingRM",
      "title": "Landing by suppression of variables",
      "topics": [
        "landingRM"
      ]
    },
    {
      "page": "maxentpi2",
      "title": "Joint inclusion probabilities of maximum entropy.",
      "topics": [
        "maxentpi2"
      ]
    },
    {
      "page": "ncat",
      "title": "Number of categories",
      "topics": [
        "ncat"
      ]
    },
    {
      "page": "osod",
      "title": "One-step One Decision sampling method",
      "topics": [
        "osod"
      ]
    },
    {
      "page": "otmatch",
      "title": "Statistical Matching using Optimal transport",
      "topics": [
        "otmatch"
      ]
    },
    {
      "page": "pikfromq",
      "title": "pik from q",
      "topics": [
        "pikfromq"
      ]
    },
    {
      "page": "piktfrompik",
      "title": "pikt from pik",
      "topics": [
        "piktfrompik"
      ]
    },
    {
      "page": "qfromw",
      "title": "q from w",
      "topics": [
        "qfromw"
      ]
    },
    {
      "page": "sfromq",
      "title": "s from q",
      "topics": [
        "sfromq"
      ]
    },
    {
      "page": "stratifiedcube",
      "title": "Stratified Sampling",
      "topics": [
        "stratifiedcube"
      ]
    },
    {
      "page": "sys_deville",
      "title": "Deville's systematic",
      "topics": [
        "sys_deville"
      ]
    },
    {
      "page": "sys_devillepi2",
      "title": "Second order inclusion probabilities of Deville's systematic",
      "topics": [
        "sys_devillepi2"
      ]
    },
    {
      "page": "vApp",
      "title": "Approximated variance for balanced sample",
      "topics": [
        "vApp"
      ]
    },
    {
      "page": "varApp",
      "title": "Approximated variance for balanced sampling",
      "topics": [
        "varApp"
      ]
    },
    {
      "page": "varEst",
      "title": "Estimator of the approximated variance for balanced sampling",
      "topics": [
        "varEst"
      ]
    },
    {
      "page": "vDBS",
      "title": "Variance Estimation for Doubly Balanced Sample.",
      "topics": [
        "vDBS"
      ]
    },
    {
      "page": "vEst",
      "title": "Variance Estimation for balanced sample",
      "topics": [
        "vEst"
      ]
    }
  ],
  "_readme": "https://github.com/cran/StratifiedSampling/raw/HEAD/README.md",
  "_rundeps": [
    "data.table",
    "lattice",
    "lpSolve",
    "MASS",
    "Matrix",
    "proxy",
    "Rcpp",
    "RcppArmadillo",
    "RcppEigen",
    "Rglpk",
    "sampling",
    "slam",
    "transport"
  ],
  "_sysdeps": [
    {
      "shlib": "liblapack",
      "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": "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": "ot_matching.Rmd",
      "filename": "ot_matching.html",
      "title": "Statistical Matching using Optimal Transport",
      "author": "Raphaël Jauslin",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Introduction",
        "Contingency table",
        "Sampling schemes",
        "Harmonization",
        "Optimal transport matching",
        "Balanced sampling",
        "Prediction"
      ],
      "created": "2021-05-20 11:10:06",
      "modified": "2025-01-31 16:20:02",
      "commits": 4
    }
  ],
  "_score": 2.6989700043360187,
  "_indexed": false,
  "_nocasepkg": "stratifiedsampling",
  "_universes": [
    "cran"
  ],
  "_indexurl": "https://rjauslin.r-universe.dev/StratifiedSampling",
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.4.2",
      "date": "2026-10-05T08:17:06.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "5247c1cad608633ae93856402ea097e104a4e629",
      "fileid": "https://r2.ropensci.org/85a65baf564c0906a2a1b1cdd713fca416fc824c272597d8cfc878d9b8708752",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/37281940908"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.4.2",
      "date": "2026-10-05T08:16:49.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "5247c1cad608633ae93856402ea097e104a4e629",
      "fileid": "https://r2.ropensci.org/d54ef1d358da100533d9ba8744157bfcca8ba8bfc0a91234436df30de0c0465a",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/37281940908"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.4.2",
      "date": "2026-10-05T08:16:19.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "5247c1cad608633ae93856402ea097e104a4e629",
      "fileid": "https://r2.ropensci.org/0bbce39bbceeb9ce29fdc67b179b8339c24b8a69ce791c2a60f3447c46f4a553",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/37281940908"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.4.2",
      "date": "2026-10-05T08:18:14.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "5247c1cad608633ae93856402ea097e104a4e629",
      "fileid": "https://r2.ropensci.org/8cd5a9d67f0573e4589515f3c87bf0b5be86b74d327a968de02593a70674a35a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/37281940908"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.4.2",
      "date": "2026-10-05T08:16:45.000Z",
      "arch": "emscripten",
      "commit": "5247c1cad608633ae93856402ea097e104a4e629",
      "fileid": "https://r2.ropensci.org/f175bb73728de46247f0e7934155f086d72ecc52b922ed6acd1ddaa5c2a92810",
      "status": "success",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/37281940908"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.4.2",
      "date": "2026-10-05T08:17:55.000Z",
      "arch": "aarch64",
      "commit": "5247c1cad608633ae93856402ea097e104a4e629",
      "fileid": "https://r2.ropensci.org/8d8278e8b7f51a5c485c2e53276af72c9ff31241eda29a34b2cbc573b123be1a",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/37281940908"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.4.2",
      "date": "2026-10-05T08:15:53.000Z",
      "arch": "x86_64",
      "commit": "5247c1cad608633ae93856402ea097e104a4e629",
      "fileid": "https://r2.ropensci.org/0ecbcc021cf78279cc6a84b64bb422c3006e0de43134d8ff1ce6cce9977f0f3f",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/37281940908"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.4.2",
      "date": "2026-10-05T08:17:54.000Z",
      "arch": "aarch64",
      "commit": "5247c1cad608633ae93856402ea097e104a4e629",
      "fileid": "https://r2.ropensci.org/a9a6d4648eda1e5f0ed5b64910b5eeb74791b8705d85672ffb0d4f2d77f4d69a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/37281940908"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.4.2",
      "date": "2026-10-05T08:15:44.000Z",
      "arch": "x86_64",
      "commit": "5247c1cad608633ae93856402ea097e104a4e629",
      "fileid": "https://r2.ropensci.org/d3aacc7764e61e2f1e393b621daeac9b2b372be450734e1677eb9b2cbb7736fc",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/37281940908"
    }
  ]
}