{
  "_id": "6ad5daeb43d630dc48a40710",
  "Package": "TeachingSampling",
  "Type": "Package",
  "Title": "Selection of Samples and Parameter Estimation in Finite\nPopulation",
  "Version": "4.2.0",
  "Date": "2026-06-15",
  "Authors@R": "c(\nperson(\"Hugo Andres\", \"Gutierrez Rojas\",\nemail = \"hagutierrezro@gmail.com\",\nrole  = c(\"aut\", \"cre\")),\nperson(\"Yury Vanessa\", \"Ochoa Montes\",\nemail = \"yury.ochoa@urosario.edu.co\",\nrole  = \"ctb\",\ncomment = \"kish_allocation function\"))",
  "Description": "Allows the user to draw probabilistic samples and make\ninferences from a finite population based on several sampling\ndesigns, including simple random, systematic, Bernoulli,\nPoisson, PPS, stratified, and cluster sampling. Provides\nHorvitz-Thompson, Hansen-Hurwitz, and generalised regression\n(GREG) estimators of totals, means, ratios, regression\ncoefficients, and quantiles, along with exact and approximate\nvariance estimators.",
  "License": "GPL (>= 2)",
  "Encoding": "UTF-8",
  "NeedsCompilation": "no",
  "URL": "https://github.com/psirusteam/TeachingSampling",
  "BugReports": "https://github.com/psirusteam/TeachingSampling/issues",
  "Config/roxygen2/version": "8.0.0",
  "Repository": "https://psirusteam.r-universe.dev",
  "Date/Publication": "2026-07-21 15:24:43 UTC",
  "RemoteUrl": "https://github.com/psirusteam/teachingsampling",
  "RemoteRef": "HEAD",
  "RemoteSha": "93d41a140ec067b80749e840907b7a75e8ba82a1",
  "Packaged": {
    "Date": "2026-10-19 08:51:17 UTC",
    "User": "root"
  },
  "Author": "Hugo Andres Gutierrez Rojas [aut, cre],\nYury Vanessa Ochoa Montes [ctb] (kish_allocation function)",
  "Maintainer": "Hugo Andres Gutierrez Rojas <hagutierrezro@gmail.com>",
  "_user": "psirusteam",
  "_type": "src",
  "_file": "TeachingSampling_4.2.0.tar.gz",
  "_fileid": "https://r2.ropensci.org/9eb46027fa43bbf12fe7853c96e101c1a927e91cddc44efc481cc88a2e054391",
  "_filesize": 3257888,
  "_sha256": "9eb46027fa43bbf12fe7853c96e101c1a927e91cddc44efc481cc88a2e054391",
  "_expires": "2027-01-27T08:55:05.000Z",
  "_created": "2026-10-19T08:51:17.000Z",
  "_published": "2026-10-19T08:55:07.331Z",
  "_buildurl": "https://github.com/r-universe/psirusteam/actions/runs/39225464176",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_jobs": [
    {
      "job": 117971598832,
      "time": 112,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12174196051"
    },
    {
      "job": 117971598705,
      "time": 102,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12173776457"
    },
    {
      "job": 117971599025,
      "time": 179,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "12173372863"
    },
    {
      "job": 117971598917,
      "time": 140,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12174255851"
    },
    {
      "job": 117970668879,
      "time": 139,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12173792752"
    },
    {
      "job": 117971598775,
      "time": 78,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "12173606840"
    },
    {
      "job": 117971598934,
      "time": 108,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12174370401"
    },
    {
      "job": 117971598801,
      "time": 86,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "12173788053"
    },
    {
      "job": 117971598736,
      "time": 87,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12173203232"
    }
  ],
  "_upstream": "https://github.com/psirusteam/teachingsampling",
  "_commit": {
    "id": "93d41a140ec067b80749e840907b7a75e8ba82a1",
    "author": "AG <hagutierrezro@gmail.com>",
    "committer": "GitHub <noreply@github.com>",
    "message": "Merge pull request #2 from YURYVOM/master\n\nrestore original examples and add Roxygen2 documentation to all functions",
    "time": 1784647483
  },
  "_maintainer": {
    "name": "Hugo Andres Gutierrez Rojas",
    "email": "hagutierrezro@gmail.com",
    "login": "psirusteam",
    "description": "",
    "uuid": 9940454
  },
  "_distro": "resolute",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.5",
      "role": "Depends"
    },
    {
      "package": "dplyr",
      "role": "Depends"
    },
    {
      "package": "magrittr",
      "role": "Depends"
    }
  ],
  "_owner": "psirusteam",
  "_selfowned": true,
  "_usedby": 4,
  "_updates": [
    {
      "week": "2026-30",
      "n": 1
    }
  ],
  "_tags": [],
  "_stars": 4,
  "_contributors": [
    {
      "user": "yuryvom",
      "count": 6,
      "uuid": 112267599
    },
    {
      "user": "psirusteam",
      "count": 5,
      "uuid": 9940454
    }
  ],
  "_userbio": {
    "uuid": 9940454,
    "type": "user",
    "name": "AG",
    "followers": 83
  },
  "_downloads": {
    "count": 1797,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/TeachingSampling"
  },
  "_devurl": "https://github.com/psirusteam/teachingsampling",
  "_searchresults": 220,
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/manual.pdf",
    "extra/readme.html",
    "extra/readme.md",
    "extra/TeachingSampling.html"
  ],
  "_homeurl": "https://github.com/psirusteam/teachingsampling",
  "_realowner": "psirusteam",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.7.6",
      "date": "2009-03-14"
    },
    {
      "version": "0.8.1",
      "date": "2009-05-24"
    },
    {
      "version": "1.0.2",
      "date": "2009-09-03"
    },
    {
      "version": "1.1.9",
      "date": "2010-01-18"
    },
    {
      "version": "1.4.9",
      "date": "2010-03-11"
    },
    {
      "version": "1.7.9",
      "date": "2010-07-24"
    },
    {
      "version": "2.0.1",
      "date": "2012-10-29"
    },
    {
      "version": "3.1.1",
      "date": "2014-03-10"
    },
    {
      "version": "3.2.1",
      "date": "2014-03-27"
    },
    {
      "version": "3.2.2",
      "date": "2015-04-29"
    },
    {
      "version": "3.4.2",
      "date": "2018-07-23"
    },
    {
      "version": "3.6.0",
      "date": "2019-11-18"
    },
    {
      "version": "4.0.1",
      "date": "2020-01-17"
    },
    {
      "version": "4.1.1",
      "date": "2020-04-21"
    }
  ],
  "_exports": [
    "Deltakl",
    "Domains",
    "E.1SI",
    "E.2SI",
    "E.BE",
    "E.Beta",
    "E.piPS",
    "E.PO",
    "E.PPS",
    "E.Quantile",
    "E.SI",
    "E.STpiPS",
    "E.STPPS",
    "E.STSI",
    "E.SY",
    "E.Trim",
    "E.UC",
    "E.WR",
    "GREG.SI",
    "HH",
    "HT",
    "Ik",
    "IkRS",
    "IkWR",
    "IPFP",
    "kish_allocation",
    "nk",
    "OrderWR",
    "p.WR",
    "Pik",
    "PikHol",
    "Pikl",
    "PikPPS",
    "PikSTPPS",
    "S.BE",
    "S.piPS",
    "S.PO",
    "S.PPS",
    "S.SI",
    "S.STpiPS",
    "S.STPPS",
    "S.STSI",
    "S.SY",
    "S.WR",
    "Support",
    "SupportRS",
    "SupportWR",
    "T.SIC",
    "VarHT",
    "VarSYGHT",
    "Wk"
  ],
  "_datasets": [
    {
      "name": "BigCity",
      "title": "Full Person-level Population Database",
      "object": "BigCity",
      "file": "BigCity.RData",
      "class": [
        "data.frame"
      ],
      "fields": [
        "HHID",
        "PersonID",
        "Stratum",
        "PSU",
        "Zone",
        "Sex",
        "Age",
        "MaritalST",
        "Income",
        "Expenditure",
        "Employment",
        "Poverty"
      ],
      "rows": 150266,
      "table": true,
      "tojson": true
    },
    {
      "name": "BigLucy",
      "title": "Full Business Population Database (Extended)",
      "object": "BigLucy",
      "file": "BigLucy.rda",
      "class": [
        "data.frame"
      ],
      "fields": [
        "ID",
        "Ubication",
        "Level",
        "Zone",
        "Income",
        "Employees",
        "Taxes",
        "SPAM",
        "ISO",
        "Years",
        "Segments"
      ],
      "rows": 85296,
      "table": true,
      "tojson": true
    },
    {
      "name": "Lucy",
      "title": "Full Business Population Database",
      "object": "Lucy",
      "file": "Lucy.rda",
      "class": [
        "data.frame"
      ],
      "fields": [
        "ID",
        "Ubication",
        "Level",
        "Zone",
        "Income",
        "Employees",
        "Taxes",
        "SPAM"
      ],
      "rows": 2396,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "BigCity",
      "title": "Full Person-level Population Database",
      "topics": [
        "BigCity"
      ]
    },
    {
      "page": "BigLucy",
      "title": "Full Business Population Database (Extended)",
      "topics": [
        "BigLucy"
      ]
    },
    {
      "page": "Deltakl",
      "title": "Variance-Covariance Matrix of the Sample Membership Indicators for Fixed Size Without Replacement Sampling Designs",
      "topics": [
        "Deltakl"
      ]
    },
    {
      "page": "Domains",
      "title": "Domain Indicator Matrix",
      "topics": [
        "Domains"
      ]
    },
    {
      "page": "E.1SI",
      "title": "Estimation of the Population Total under Single Stage Simple Random Sampling Without Replacement",
      "topics": [
        "E.1SI"
      ]
    },
    {
      "page": "E.2SI",
      "title": "Estimation of the Population Total under Two Stage Simple Random Sampling Without Replacement",
      "topics": [
        "E.2SI"
      ]
    },
    {
      "page": "E.BE",
      "title": "Estimation of the Population Total under Bernoulli Sampling Without Replacement",
      "topics": [
        "E.BE"
      ]
    },
    {
      "page": "E.Beta",
      "title": "Estimation of Regression Coefficients under Simple Random Sampling Without Replacement",
      "topics": [
        "E.Beta"
      ]
    },
    {
      "page": "E.piPS",
      "title": "Estimation of the Population Total under Probability-Proportional-to-Size Sampling Without Replacement",
      "topics": [
        "E.piPS"
      ]
    },
    {
      "page": "E.PO",
      "title": "Estimation of the Population Total under Poisson Sampling Without Replacement",
      "topics": [
        "E.PO"
      ]
    },
    {
      "page": "E.PPS",
      "title": "Estimation of the Population Total under Probability-Proportional-to-Size Sampling With Replacement",
      "topics": [
        "E.PPS"
      ]
    },
    {
      "page": "E.Quantile",
      "title": "Estimation of a Population Quantile",
      "topics": [
        "E.Quantile"
      ]
    },
    {
      "page": "E.SI",
      "title": "Estimation of the Population Total under Simple Random Sampling Without Replacement",
      "topics": [
        "E.SI"
      ]
    },
    {
      "page": "E.STpiPS",
      "title": "Estimation of the Population Total under Stratified Probability Proportional to Size Sampling Without Replacement",
      "topics": [
        "E.STpiPS"
      ]
    },
    {
      "page": "E.STPPS",
      "title": "Estimation of the Population Total under Stratified Probability Proportional to Size Sampling With Replacement",
      "topics": [
        "E.STPPS"
      ]
    },
    {
      "page": "E.STSI",
      "title": "Estimation of the Population Total under Stratified Simple Random Sampling Without Replacement",
      "topics": [
        "E.STSI"
      ]
    },
    {
      "page": "E.SY",
      "title": "Estimation of the Population Total under Systematic Sampling Without Replacement",
      "topics": [
        "E.SY"
      ]
    },
    {
      "page": "E.Trim",
      "title": "Weight Trimming and Redistribution",
      "topics": [
        "E.Trim"
      ]
    },
    {
      "page": "E.UC",
      "title": "Estimation of the Population Total and its variance using the Ultimate Cluster technique",
      "topics": [
        "E.UC"
      ]
    },
    {
      "page": "E.WR",
      "title": "Estimation of the Population Total under Simple Random Sampling With Replacement",
      "topics": [
        "E.WR"
      ]
    },
    {
      "page": "GREG.SI",
      "title": "Generalised Regression Estimator under Simple Random Sampling",
      "topics": [
        "GREG.SI"
      ]
    },
    {
      "page": "HH",
      "title": "Hansen-Hurwitz Estimator of the Population Total",
      "topics": [
        "HH"
      ]
    },
    {
      "page": "HT",
      "title": "Horvitz-Thompson Estimator of the Population Total",
      "topics": [
        "HT"
      ]
    },
    {
      "page": "Ik",
      "title": "Sample Membership Indicator Matrix",
      "topics": [
        "Ik"
      ]
    },
    {
      "page": "IkRS",
      "title": "Sample Membership Indicator Matrix for All Possible Sample Sizes",
      "topics": [
        "IkRS"
      ]
    },
    {
      "page": "IkWR",
      "title": "Sample Membership Indicator for with Replacements sampling designs",
      "topics": [
        "IkWR"
      ]
    },
    {
      "page": "IPFP",
      "title": "Iterative Proportional Fitting Procedure (Raking)",
      "topics": [
        "IPFP"
      ]
    },
    {
      "page": "kish_allocation",
      "title": "Kish Allocation for Stratified Sampling",
      "topics": [
        "kish_allocation"
      ]
    },
    {
      "page": "Lucy",
      "title": "Full Business Population Database",
      "topics": [
        "Lucy"
      ]
    },
    {
      "page": "nk",
      "title": "Sample Selection Indicator for With Replacement Sampling Designs",
      "topics": [
        "nk"
      ]
    },
    {
      "page": "OrderWR",
      "title": "Ordered With-Replacement Sampling Support",
      "topics": [
        "OrderWR"
      ]
    },
    {
      "page": "p.WR",
      "title": "Sample Probabilities under With-Replacement Sampling",
      "topics": [
        "p.WR"
      ]
    },
    {
      "page": "Pik",
      "title": "First-Order Inclusion Probabilities from a Sampling Design",
      "topics": [
        "Pik"
      ]
    },
    {
      "page": "PikHol",
      "title": "Optimal Inclusion Probabilities for Multiple Surveys (Holmberg)",
      "topics": [
        "PikHol"
      ]
    },
    {
      "page": "Pikl",
      "title": "Second-Order Inclusion Probabilities",
      "topics": [
        "Pikl"
      ]
    },
    {
      "page": "PikPPS",
      "title": "Inclusion Probabilities Proportional to Size",
      "topics": [
        "PikPPS"
      ]
    },
    {
      "page": "PikSTPPS",
      "title": "Inclusion Probabilities in Stratified Proportional to Size Sampling Designs",
      "topics": [
        "PikSTPPS"
      ]
    },
    {
      "page": "S.BE",
      "title": "Bernoulli Sampling",
      "topics": [
        "S.BE"
      ]
    },
    {
      "page": "S.piPS",
      "title": "Probability Proportional to Size Without-Replacement Sampling (piPS)",
      "topics": [
        "S.piPS"
      ]
    },
    {
      "page": "S.PO",
      "title": "Poisson Sampling",
      "topics": [
        "S.PO"
      ]
    },
    {
      "page": "S.PPS",
      "title": "Probability Proportional to Size With-Replacement Sampling",
      "topics": [
        "S.PPS"
      ]
    },
    {
      "page": "S.SI",
      "title": "Simple Random Sampling Without Replacement",
      "topics": [
        "S.SI"
      ]
    },
    {
      "page": "S.STpiPS",
      "title": "Stratified Probability Proportional to Size Without-Replacement Sampling",
      "topics": [
        "S.STpiPS"
      ]
    },
    {
      "page": "S.STPPS",
      "title": "Stratified Probability Proportional to Size With-Replacement Sampling",
      "topics": [
        "S.STPPS"
      ]
    },
    {
      "page": "S.STSI",
      "title": "Stratified Simple Random Sampling Without Replacement",
      "topics": [
        "S.STSI"
      ]
    },
    {
      "page": "S.SY",
      "title": "Systematic Sampling",
      "topics": [
        "S.SY"
      ]
    },
    {
      "page": "S.WR",
      "title": "Simple Random Sampling With Replacement",
      "topics": [
        "S.WR"
      ]
    },
    {
      "page": "Support",
      "title": "Sampling Support for Fixed-Size Without-Replacement Designs",
      "topics": [
        "Support"
      ]
    },
    {
      "page": "SupportRS",
      "title": "Complete Sampling Support for All Sample Sizes",
      "topics": [
        "SupportRS"
      ]
    },
    {
      "page": "SupportWR",
      "title": "Sampling Support for With-Replacement Designs",
      "topics": [
        "SupportWR"
      ]
    },
    {
      "page": "T.SIC",
      "title": "Cluster Totals for Single-Stage Cluster Sampling",
      "topics": [
        "T.SIC"
      ]
    },
    {
      "page": "VarHT",
      "title": "Exact Variance of the Horvitz-Thompson Estimator",
      "topics": [
        "VarHT"
      ]
    },
    {
      "page": "VarSYGHT",
      "title": "Two different varaince estimators for the Horvitz-Thompson estimator",
      "topics": [
        "VarSYGHT"
      ]
    },
    {
      "page": "Wk",
      "title": "GREG Generalised Weights",
      "topics": [
        "Wk"
      ]
    }
  ],
  "_readme": "https://github.com/psirusteam/teachingsampling/raw/HEAD/README.md",
  "_rundeps": [
    "cli",
    "dplyr",
    "generics",
    "glue",
    "lifecycle",
    "magrittr",
    "pillar",
    "pkgconfig",
    "R6",
    "rlang",
    "tibble",
    "tidyselect",
    "utf8",
    "vctrs",
    "withr"
  ],
  "_score": 5.977181999642787,
  "_indexed": true,
  "_nocasepkg": "teachingsampling",
  "_universes": [
    "psirusteam"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "4.2.0",
      "date": "2026-10-19T08:53:01.000Z",
      "distro": "resolute",
      "commit": "93d41a140ec067b80749e840907b7a75e8ba82a1",
      "fileid": "https://r2.ropensci.org/a1ec9e02d594712ff97220e7acb263b4ce82e01562f995d93b90f6fb35af274e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/psirusteam/actions/runs/39225464176"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "4.2.0",
      "date": "2026-10-19T08:52:55.000Z",
      "distro": "resolute",
      "commit": "93d41a140ec067b80749e840907b7a75e8ba82a1",
      "fileid": "https://r2.ropensci.org/692ce2c541c3abd341fd562e584984a33ade97b81f9dfa314f9610b5c901777b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/psirusteam/actions/runs/39225464176"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "4.2.0",
      "date": "2026-10-19T08:53:54.000Z",
      "commit": "93d41a140ec067b80749e840907b7a75e8ba82a1",
      "fileid": "https://r2.ropensci.org/18aef6b38b96932fe71677f4a86f539ee7a1815ac947ba39cdb61eb5466c465a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/psirusteam/actions/runs/39225464176"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "4.2.0",
      "date": "2026-10-19T08:53:28.000Z",
      "commit": "93d41a140ec067b80749e840907b7a75e8ba82a1",
      "fileid": "https://r2.ropensci.org/17fabcfaabfdd3b4d31badfaabaa40628f171c02e0e8c207c9bda5941709434d",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/psirusteam/actions/runs/39225464176"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "4.2.0",
      "date": "2026-10-19T08:52:55.000Z",
      "commit": "93d41a140ec067b80749e840907b7a75e8ba82a1",
      "fileid": "https://r2.ropensci.org/c3cd5b3a71b56cea9ed44829863da1220b9369ee4ba716c805dd35b0e4e17a2f",
      "status": "success",
      "buildurl": "https://github.com/r-universe/psirusteam/actions/runs/39225464176"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "4.2.0",
      "date": "2026-10-19T08:52:47.000Z",
      "commit": "93d41a140ec067b80749e840907b7a75e8ba82a1",
      "fileid": "https://r2.ropensci.org/1c4652dccebeeec89dd2da7d570927d087f713b25d2b0daf583b2a675a8ceb42",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/psirusteam/actions/runs/39225464176"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "4.2.0",
      "date": "2026-10-19T08:52:28.000Z",
      "commit": "93d41a140ec067b80749e840907b7a75e8ba82a1",
      "fileid": "https://r2.ropensci.org/dd2c1c9e029702bef82f3d1bdc0af7ceeceba3242b418f91d27c26d93321b654",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/psirusteam/actions/runs/39225464176"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "4.2.0",
      "date": "2026-10-19T08:52:28.000Z",
      "commit": "93d41a140ec067b80749e840907b7a75e8ba82a1",
      "fileid": "https://r2.ropensci.org/955f9fcc5788d533258d0fda4ccbe59db30cb7e9b121d3ab322e5f9d7a56090f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/psirusteam/actions/runs/39225464176"
    }
  ]
}