{
  "_id": "6a5fa4db14e95619b75d702f",
  "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-07-21 16:53:59 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/5a2cd26badf7a5a8830e8b875c35ba0e6aef73ebce8d956130b83ba26c554b95",
  "_filesize": 3256907,
  "_sha256": "5a2cd26badf7a5a8830e8b875c35ba0e6aef73ebce8d956130b83ba26c554b95",
  "_expires": "2026-10-29T16:56:56.000Z",
  "_created": "2026-07-21T16:53:59.000Z",
  "_published": "2026-07-21T16:56:58.825Z",
  "_jobs": [
    {
      "job": 88702379375,
      "time": 134,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "8503245590"
    },
    {
      "job": 88702379233,
      "time": 139,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8503247992"
    },
    {
      "job": 88702379272,
      "time": 99,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "8503229905"
    },
    {
      "job": 88702379235,
      "time": 85,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8503222700"
    },
    {
      "job": 88701668345,
      "time": 172,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8503181680"
    },
    {
      "job": 88702379219,
      "time": 115,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "8503236808"
    },
    {
      "job": 88702379287,
      "time": 87,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "8503224696"
    },
    {
      "job": 88702379300,
      "time": 93,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "8503227584"
    },
    {
      "job": 88702379258,
      "time": 85,
      "config": "windows-release",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8503222875"
    }
  ],
  "_host": "GitHub-Actions",
  "_buildurl": "https://github.com/r-universe/psirusteam/actions/runs/29850424447",
  "_status": "success",
  "_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": 5,
  "_contributors": [
    {
      "user": "yuryvom",
      "count": 6,
      "uuid": 112267599
    },
    {
      "user": "psirusteam",
      "count": 5,
      "uuid": 9940454
    }
  ],
  "_userbio": {
    "uuid": 9940454,
    "type": "user",
    "name": "AG",
    "followers": 79
  },
  "_downloads": {
    "count": 1374,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/TeachingSampling"
  },
  "_devurl": "https://github.com/psirusteam/teachingsampling",
  "_searchresults": 202,
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/readme.html",
    "extra/readme.md",
    "extra/TeachingSampling.html",
    "manual.pdf"
  ],
  "_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.920459356889817,
  "_indexed": true,
  "_nocasepkg": "teachingsampling",
  "_universes": [
    "psirusteam"
  ],
  "_previous": "4.1.1",
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "4.2.0",
      "date": "2026-07-21T16:56:09.000Z",
      "distro": "resolute",
      "commit": "93d41a140ec067b80749e840907b7a75e8ba82a1",
      "fileid": "https://r2.ropensci.org/41dd7daad978a3ea76476a467b46194ff59e122c6732759d7fc3e2cdc67a1800",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/psirusteam/actions/runs/29850424447"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "4.2.0",
      "date": "2026-07-21T16:56:15.000Z",
      "distro": "resolute",
      "commit": "93d41a140ec067b80749e840907b7a75e8ba82a1",
      "fileid": "https://r2.ropensci.org/80530d479106056d8390bf8e84a74d9b4d2189fbbaef9e4750c0952c2b588543",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/psirusteam/actions/runs/29850424447"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "4.2.0",
      "date": "2026-07-21T16:55:41.000Z",
      "commit": "93d41a140ec067b80749e840907b7a75e8ba82a1",
      "fileid": "https://r2.ropensci.org/97ef4bd00b162342fc7ba6d71f4564f066e2a721d2373759e6c73e2d6e8f727e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/psirusteam/actions/runs/29850424447"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "4.2.0",
      "date": "2026-07-21T16:55:29.000Z",
      "commit": "93d41a140ec067b80749e840907b7a75e8ba82a1",
      "fileid": "https://r2.ropensci.org/542a72b4a39af41a1492c3de9dd1693665fba2f3fd91f41ca98c341e6ab1c107",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/psirusteam/actions/runs/29850424447"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "4.2.0",
      "date": "2026-07-21T16:56:15.000Z",
      "commit": "93d41a140ec067b80749e840907b7a75e8ba82a1",
      "fileid": "https://r2.ropensci.org/a5f65c31d07aff3fa9a42b3dcd222a7f3b357c8283ed0da1ffdb0411fd550c47",
      "status": "success",
      "buildurl": "https://github.com/r-universe/psirusteam/actions/runs/29850424447"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "4.2.0",
      "date": "2026-07-21T16:55:11.000Z",
      "commit": "93d41a140ec067b80749e840907b7a75e8ba82a1",
      "fileid": "https://r2.ropensci.org/9faf6b70787cf468263738d6d43ef602439fb384ba460dc1bc5b56f6cdd511fe",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/psirusteam/actions/runs/29850424447"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "4.2.0",
      "date": "2026-07-21T16:55:17.000Z",
      "commit": "93d41a140ec067b80749e840907b7a75e8ba82a1",
      "fileid": "https://r2.ropensci.org/1853c2f11cbbdf76cee097f276b16e072d529ba579b5bce0ee0a70e437291346",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/psirusteam/actions/runs/29850424447"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "4.2.0",
      "date": "2026-07-21T16:55:08.000Z",
      "commit": "93d41a140ec067b80749e840907b7a75e8ba82a1",
      "fileid": "https://r2.ropensci.org/17d008c2498c0f852513cf93f8f521fd48f05ba1b7986a1f2f1704d404badeda",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/psirusteam/actions/runs/29850424447"
    }
  ]
}