{
  "_id": "6afd93bfef1f2edb40686310",
  "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-11-18 11:04:51 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/dab4d45ca13728254514137be027572434bb0a1dfa8cc6348af70f26e7def72d",
  "_filesize": 3257868,
  "_sha256": "dab4d45ca13728254514137be027572434bb0a1dfa8cc6348af70f26e7def72d",
  "_expires": "2027-02-26T12:02:05.000Z",
  "_created": "2026-11-18T11:04:51.000Z",
  "_published": "2026-11-20T02:58:14.045Z",
  "_upstream": "https://github.com/psirusteam/teachingsampling",
  "_status": "success",
  "_maintainer": {
    "name": "Hugo Andres Gutierrez Rojas",
    "email": "hagutierrezro@gmail.com",
    "login": "psirusteam",
    "description": "",
    "uuid": 9940454
  },
  "_jobs": [
    {
      "job": 134757336278,
      "time": 107,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "14420708838"
    },
    {
      "job": 134757336372,
      "time": 153,
      "config": "linux-release-x86_64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "14421243816"
    },
    {
      "job": 134757336211,
      "time": 91,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "14425057419"
    },
    {
      "job": 134757336246,
      "time": 133,
      "config": "macos-release-arm64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "14424933764"
    },
    {
      "job": 134755284635,
      "time": 227,
      "config": "source",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "14420978878"
    },
    {
      "job": 134757336217,
      "time": 85,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "14422220761"
    },
    {
      "job": 134757336366,
      "time": 78,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "14421386709"
    },
    {
      "job": 134757336308,
      "time": 64,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "14421492954"
    },
    {
      "job": 134757336594,
      "time": 93,
      "config": "windows-release-x86_64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "14421148422"
    }
  ],
  "_buildurl": "https://github.com/r-universe/psirusteam/actions/runs/44290776071",
  "_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
  },
  "_distro": "resolute",
  "_host": "GitHub-Actions",
  "_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": 87
  },
  "_downloads": {
    "count": 2063,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/TeachingSampling"
  },
  "_devurl": "https://github.com/psirusteam/teachingsampling",
  "_rbuild": "4.6.2",
  "_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": 4.694710469684758,
  "_indexed": true,
  "_nocasepkg": "teachingsampling",
  "_universes": [
    "psirusteam"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "4.2.0",
      "date": "2026-11-18T11:06:40.000Z",
      "distro": "resolute",
      "commit": "93d41a140ec067b80749e840907b7a75e8ba82a1",
      "fileid": "https://r2.ropensci.org/9c1d99ad27251677555ac0832cd3960befacb3582904404ea52770b0d17c24fa",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/psirusteam/actions/runs/44290776071"
    },
    {
      "r": "4.6.2",
      "os": "linux",
      "version": "4.2.0",
      "date": "2026-11-18T11:07:20.000Z",
      "distro": "resolute",
      "commit": "93d41a140ec067b80749e840907b7a75e8ba82a1",
      "fileid": "https://r2.ropensci.org/06450d4585787bb688571418f87e2721def5adeaea4c264e61c02fb45a27d566",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/psirusteam/actions/runs/44290776071"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "4.2.0",
      "date": "2026-11-18T11:57:36.000Z",
      "commit": "93d41a140ec067b80749e840907b7a75e8ba82a1",
      "fileid": "https://r2.ropensci.org/218636d704a4eda0e4a92364088e09b4e3703cb837b1de18a182b7c0d8d4d2d5",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/psirusteam/actions/runs/44290776071"
    },
    {
      "r": "4.6.2",
      "os": "mac",
      "version": "4.2.0",
      "date": "2026-11-18T12:01:10.000Z",
      "commit": "93d41a140ec067b80749e840907b7a75e8ba82a1",
      "fileid": "https://r2.ropensci.org/418ba05bffe1ad2fc3bc7177f1646b704a826cb82c2c25a2452f052ed6683109",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/psirusteam/actions/runs/44290776071"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "4.2.0",
      "date": "2026-11-18T11:06:39.000Z",
      "commit": "93d41a140ec067b80749e840907b7a75e8ba82a1",
      "fileid": "https://r2.ropensci.org/eca462769394e2b9ed1a4a865094782204c9a9be164a0649e9d753f842b23f1e",
      "status": "success",
      "buildurl": "https://github.com/r-universe/psirusteam/actions/runs/44290776071"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "4.2.0",
      "date": "2026-11-18T11:05:57.000Z",
      "commit": "93d41a140ec067b80749e840907b7a75e8ba82a1",
      "fileid": "https://r2.ropensci.org/33477af869af79cac9eb07908708d025707620c99f667fcef7b2b5455e05fe18",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/psirusteam/actions/runs/44290776071"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "4.2.0",
      "date": "2026-11-18T11:05:56.000Z",
      "commit": "93d41a140ec067b80749e840907b7a75e8ba82a1",
      "fileid": "https://r2.ropensci.org/dc62acaa1da84b498096269057e4552331d06a29062774040abd8c37688ac3c3",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/psirusteam/actions/runs/44290776071"
    },
    {
      "r": "4.6.2",
      "os": "win",
      "version": "4.2.0",
      "date": "2026-11-18T11:06:13.000Z",
      "commit": "93d41a140ec067b80749e840907b7a75e8ba82a1",
      "fileid": "https://r2.ropensci.org/f1f9707782fefafc1ffbefa3927f9c40ae7f6b342d752fd4cb9df013c4cfee1d",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/psirusteam/actions/runs/44290776071"
    }
  ]
}