{
  "_id": "6a3add015cdecea1d67ee1b4",
  "Package": "stratifyR",
  "Type": "Package",
  "Title": "Optimal Stratification of Univariate Populations",
  "Version": "1.0-5",
  "Authors@R": "c(\nperson(\"Karuna G.\", \"Reddy\",, \"karuna.reddy@auckland.ac.nz\", c(\"aut\", \"cre\")),\nperson(\"M. G. M.\", \"Khan\",, \"khan_mg@usp.ac.fj\", \"aut\")\n)",
  "Author": "Karuna G. Reddy [aut, cre], M. G. M. Khan [aut]",
  "Maintainer": "Karuna G. Reddy <karuna.reddy@auckland.ac.nz>",
  "Description": "The stratification of univariate populations under\nstratified sampling designs is implemented according to Khan et\nal. (2002) <doi:10.1177/0008068320020518> and Khan et al.\n(2015) <doi:10.1080/02664763.2015.1018674> in this library. It\ndetermines the Optimum Strata Boundaries (OSB) and Optimum\nSample Sizes (OSS) for the study variable, y, using the\nbest-fit frequency distribution of a survey variable (if data\nis available) or a hypothetical distribution (if data is not\navailable). The method formulates the problem of determining\nthe OSB as mathematical programming problem which is solved by\nusing a dynamic programming technique. If a dataset of the\npopulation is available to the surveyor, the method estimates\nits best-fit distribution and determines the OSB and OSS under\nNeyman allocation directly. When the dataset is not available,\nstratification is made based on the assumption that the values\nof the study variable, y, are available as hypothetical\nrealizations of proxy values of y from recent surveys. Thus, it\nrequires certain distributional assumptions about the study\nvariable. At present, it handles stratification for the\npopulations where the study variable follows a continuous\ndistribution, namely, Pareto, Triangular, Right-triangular,\nWeibull, Gamma, Exponential, Uniform, Normal, Log-normal and\nCauchy distributions.",
  "LazyData": "true",
  "License": "GPL-2",
  "NeedsCompilation": "yes",
  "RoxygenNote": "7.3.2",
  "VignetteBuilder": "knitr",
  "Encoding": "UTF-8",
  "Packaged": {
    "Date": "2026-06-23 19:18:52 UTC",
    "User": "root"
  },
  "Repository": "https://cran.r-universe.dev",
  "Date/Publication": "2026-06-23 15:50:02 UTC",
  "RemoteUrl": "https://github.com/cran/stratifyR",
  "RemoteRef": "HEAD",
  "RemoteSha": "1c511ec868309d4387be0173f843c98c7e0a6ea9",
  "MD5sum": "5b92493e9eea41e3ec858f68eccaf1f3",
  "_user": "cran",
  "_type": "src",
  "_file": "stratifyR_1.0-5.tar.gz",
  "_fileid": "6498b981634cc632abfe5a96860f6bb17c0ee7edd23e21b654c7a39d4a3649c5",
  "_filesize": 846953,
  "_sha256": "6498b981634cc632abfe5a96860f6bb17c0ee7edd23e21b654c7a39d4a3649c5",
  "_created": "2026-06-23T19:18:52.000Z",
  "_published": "2026-06-23T19:22:41.013Z",
  "_distro": "resolute",
  "_jobs": [
    {
      "job": 83041011099,
      "time": 190,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7831102450"
    },
    {
      "job": 83041011152,
      "time": 175,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7831096835"
    },
    {
      "job": 83040000601,
      "time": 308,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7831030926"
    },
    {
      "job": 83041011093,
      "time": 177,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7831097373"
    }
  ],
  "_buildurl": "https://github.com/r-universe/cran/actions/runs/28050611197",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/cran/stratifyR",
  "_commit": {
    "id": "1c511ec868309d4387be0173f843c98c7e0a6ea9",
    "author": "Karuna G. Reddy <karuna.reddy@auckland.ac.nz>",
    "committer": "cran-robot <csardi.gabor+cran@gmail.com>",
    "message": "version 1.0-5\n",
    "time": 1782229802
  },
  "_maintainer": {
    "name": "Karuna G. Reddy",
    "email": "karuna.reddy@auckland.ac.nz"
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.1.0",
      "role": "Depends"
    },
    {
      "package": "fitdistrplus",
      "role": "Depends"
    },
    {
      "package": "zipfR",
      "role": "Depends"
    },
    {
      "package": "triangle",
      "role": "Depends"
    },
    {
      "package": "mc2d",
      "role": "Depends"
    },
    {
      "package": "actuar",
      "role": "Imports"
    },
    {
      "package": "crayon",
      "role": "Imports"
    },
    {
      "package": "kableExtra",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "graphics",
      "role": "Imports"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    }
  ],
  "_owner": "cran",
  "_selfowned": false,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-26",
      "n": 1
    }
  ],
  "_tags": [
    {
      "name": "1.0-5",
      "date": "2026-06-23"
    }
  ],
  "_stars": 0,
  "_contributors": [
    {
      "user": "reddykaruna",
      "count": 1,
      "uuid": 7244029
    }
  ],
  "_userbio": {
    "uuid": 6899542,
    "type": "organization",
    "name": "cran",
    "followers": 610,
    "description": "Unofficial read-only mirror of all CRAN R packages"
  },
  "_downloads": {
    "count": 73,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/stratifyR"
  },
  "_searchresults": 28,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "extra/stratifyR.html",
    "manual.pdf"
  ],
  "_cranurl": false,
  "_releases": [
    {
      "version": "1.0-1",
      "date": "2018-04-12"
    },
    {
      "version": "1.0-2",
      "date": "2019-09-27"
    },
    {
      "version": "1.0-3",
      "date": "2021-12-07"
    },
    {
      "version": "1.0-4",
      "date": "2025-02-23"
    },
    {
      "version": "1.0-5",
      "date": "2026-06-23"
    }
  ],
  "_exports": [
    "strata.data",
    "strata.distr"
  ],
  "_datasets": [
    {
      "name": "anaemia",
      "title": "Micronutrient data on Anaemia in Fiji",
      "object": "anaemia",
      "class": [
        "data.frame"
      ],
      "fields": [
        "Haemoglobin",
        "Iron",
        "Folate"
      ],
      "rows": 724,
      "table": true,
      "tojson": true
    },
    {
      "name": "hies",
      "title": "Household Income Expenditure Survey (HIES) in Fiji",
      "object": "hies",
      "class": [
        "data.frame"
      ],
      "fields": [
        "Expenditure",
        "Income"
      ],
      "rows": 3566,
      "table": true,
      "tojson": true
    },
    {
      "name": "math",
      "title": "Mathematics Marks for First-year University Students",
      "object": "math",
      "class": [
        "data.frame"
      ],
      "fields": [
        "cw",
        "end_exam",
        "final_marks",
        "grade"
      ],
      "rows": 487,
      "table": true,
      "tojson": true
    },
    {
      "name": "sugarcane",
      "title": "Sugarcane Farming Data in Fiji",
      "object": "sugarcane",
      "class": [
        "data.frame"
      ],
      "fields": [
        "DispArea",
        "Production",
        "Income"
      ],
      "rows": 13894,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "anaemia",
      "title": "Micronutrient data on Anaemia in Fiji",
      "topics": [
        "anaemia"
      ]
    },
    {
      "page": "create.mat",
      "title": "To create and store calculated values of the objective function",
      "topics": [
        "create.mat"
      ]
    },
    {
      "page": "data.alloc",
      "title": "Allocate data To calculate the stratum sample sizes (nh) for a fixed sample size (n) directly based on the data",
      "topics": [
        "data.alloc"
      ]
    },
    {
      "page": "data.optim",
      "title": "To implement the Dynamic Programming (DP) solution procedure on the stratification problem presented in the form of a Mathematical Programming Problem (MPP)",
      "topics": [
        "data.optim"
      ]
    },
    {
      "page": "data.root",
      "title": "Calculate the objective function value for a given (d, y)",
      "topics": [
        "data.root"
      ]
    },
    {
      "page": "distr.alloc",
      "title": "To calculate the stratum sample sizes (nh) for a fixed sample size (n) based on the hypothetical distribution of the data",
      "topics": [
        "distr.alloc"
      ]
    },
    {
      "page": "distr.optim",
      "title": "To implement the Dynamic Programming (DP) solution procedure on the stratification problem presented in the form of a Mathematical Programming Problem (MPP)",
      "topics": [
        "distr.optim"
      ]
    },
    {
      "page": "distr.root",
      "title": "Calculate the objective function value for a given (d, y) under a hypothesized distribution (scaled-data formulation)",
      "topics": [
        "distr.root"
      ]
    },
    {
      "page": "erf",
      "title": "To calculate the error for a normal variable",
      "topics": [
        "erf"
      ]
    },
    {
      "page": "get.dist",
      "title": "Determine best-fit distribution Identify the best-fit distribution for a univariate numeric vector",
      "topics": [
        "get.dist"
      ]
    },
    {
      "page": "hies",
      "title": "Household Income Expenditure Survey (HIES) in Fiji",
      "topics": [
        "hies"
      ]
    },
    {
      "page": "math",
      "title": "Mathematics Marks for First-year University Students",
      "topics": [
        "math"
      ]
    },
    {
      "page": "minim.val",
      "title": "To identify the minimum value out of two given sets of values",
      "topics": [
        "minim.val"
      ]
    },
    {
      "page": "mode.val",
      "title": "To calculate the modal value of the data",
      "topics": [
        "mode.val"
      ]
    },
    {
      "page": "realloc",
      "title": "To re-allocate the stratum sample sizes (nh)",
      "topics": [
        "realloc"
      ]
    },
    {
      "page": "strata.data",
      "title": "Stratification of Univariate Survey Population Using the Data",
      "topics": [
        "strata.data"
      ]
    },
    {
      "page": "strata.distr",
      "title": "Stratification of Univariate Survey Population Using the Distribution",
      "topics": [
        "strata.distr"
      ]
    },
    {
      "page": "sugarcane",
      "title": "Sugarcane Farming Data in Fiji",
      "topics": [
        "sugarcane"
      ]
    },
    {
      "page": "summary.strata",
      "title": "Format and Present Results",
      "topics": [
        "summary.strata"
      ]
    }
  ],
  "_readme": "https://github.com/cran/stratifyR/raw/HEAD/README.md",
  "_rundeps": [
    "abind",
    "actuar",
    "backports",
    "base64enc",
    "boot",
    "broom",
    "bslib",
    "cachem",
    "car",
    "carData",
    "cli",
    "colorspace",
    "corrplot",
    "cowplot",
    "cpp11",
    "crayon",
    "Deriv",
    "digest",
    "doBy",
    "dplyr",
    "evaluate",
    "expint",
    "farver",
    "fastmap",
    "fitdistrplus",
    "fontawesome",
    "forecast",
    "Formula",
    "fracdiff",
    "fs",
    "generics",
    "ggplot2",
    "ggpubr",
    "ggrepel",
    "ggsci",
    "ggsignif",
    "glue",
    "gridExtra",
    "gtable",
    "highr",
    "htmltools",
    "isoband",
    "jquerylib",
    "jsonlite",
    "kableExtra",
    "knitr",
    "labeling",
    "lattice",
    "lifecycle",
    "lme4",
    "lmtest",
    "magrittr",
    "MASS",
    "Matrix",
    "MatrixModels",
    "mc2d",
    "memoise",
    "mgcv",
    "microbenchmark",
    "mime",
    "minqa",
    "modelr",
    "mvtnorm",
    "nlme",
    "nloptr",
    "nnet",
    "numDeriv",
    "pbkrtest",
    "pillar",
    "pkgconfig",
    "polynom",
    "purrr",
    "quantreg",
    "R6",
    "rappdirs",
    "rbibutils",
    "RColorBrewer",
    "Rcpp",
    "RcppArmadillo",
    "RcppEigen",
    "Rdpack",
    "reformulas",
    "rlang",
    "rmarkdown",
    "rstatix",
    "rstudioapi",
    "S7",
    "sass",
    "scales",
    "SparseM",
    "stringi",
    "stringr",
    "survival",
    "svglite",
    "systemfonts",
    "textshaping",
    "tibble",
    "tidyr",
    "tidyselect",
    "timeDate",
    "tinytex",
    "triangle",
    "urca",
    "utf8",
    "vctrs",
    "viridisLite",
    "withr",
    "xfun",
    "xml2",
    "yaml",
    "zipfR",
    "zoo"
  ],
  "_vignettes": [
    {
      "source": "stratifyR-vignette.Rmd",
      "filename": "stratifyR-vignette.html",
      "title": "R Package 'stratifyR'",
      "author": "K.G. Reddy & M.G.M. Khan",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Introduction",
        "The Package in a Glance",
        "General Formulation of the Univariate Stratification Problem \\label",
        "Dynamic Programming Technique as a Solution Procedure",
        "Optimum Sample Sizes Using Neyman Allocation",
        "Overview of Package Functionalities",
        "The Function strata.data()",
        "The Function strata.distr()",
        "Application to Numerous Survey Populations",
        "Stratification for a Survey Variable with Pareto Type II Distribution",
        "MPP Formulation for Pareto Type II Distribution",
        "DP Solution for Pareto Type II Distribution",
        "A Numerical Example for Pareto Type II Distribution",
        "Stratification for a Survey Variable with Triangular Distribution",
        "DP Solution for Triangular Distribution",
        "A Numerical Example for Triangular Distribution",
        "Stratification for a Survey Variable with Right-Triangular Distribution",
        "DP Solution for Right-Triangular Distribution",
        "A Numerical Example for Right-Triangular Distribution",
        "Stratification for a Survey Variable with Weibull Distribution",
        "DP Solution for Weibull Distribution",
        "A Numerical Example for Weibull Distribution",
        "Stratification for a Survey Variable with Gamma Distribution",
        "DP Solution for Gamma Distribution",
        "A Numerical Example for Gamma Distribution",
        "Stratification for a Survey Variable with Exponential Distribution",
        "DP Solution for Exponential Distribution",
        "A Numerical Example for Exponential Distribution",
        "Stratification for a Survey Variable with Uniform Distribution",
        "DP Solution for Uniform Distribution",
        "A Numerical Example for Uniform Distribution",
        "Stratification for a Survey Variable with Normal Distribution",
        "DP Solution for Normal Distribution",
        "A Numerical Example for Normal Distribution",
        "Stratification for a Survey Variable with Log-Normal Distribution",
        "DP Solution for Log-Normal Distribution",
        "A Numerical Example for Log-Normal Distribution",
        "Stratification for a Survey Variable with Cauchy Distribution",
        "DP Solution for Cauchy Distribution",
        "A Numerical Example for Cauchy Distribution",
        "References"
      ],
      "created": "2018-04-12 07:34:03",
      "modified": "2026-06-23 15:50:02",
      "commits": 5
    }
  ],
  "_score": 3.146128035678238,
  "_indexed": true,
  "_nocasepkg": "stratifyr",
  "_universes": [
    "cran"
  ],
  "_previous": "1.0-4",
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.0-5",
      "date": "2026-06-23T19:21:37.000Z",
      "distro": "resolute",
      "commit": "1c511ec868309d4387be0173f843c98c7e0a6ea9",
      "fileid": "c97b7e7d08d3d0063bd40f88a1f0c3d8788f94be8e30b7c82a7c06d7459d27e3",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/28050611197"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "1.0-5",
      "date": "2026-06-23T19:21:21.000Z",
      "distro": "resolute",
      "commit": "1c511ec868309d4387be0173f843c98c7e0a6ea9",
      "fileid": "3d73fbf93a46d4742cb1086950751e29ecf99c51d4c4f00ef2fe31dee33e5425",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/28050611197"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.0-5",
      "date": "2026-06-23T19:22:11.000Z",
      "commit": "1c511ec868309d4387be0173f843c98c7e0a6ea9",
      "fileid": "05b0843868f0179262707b08f2b6613513f9b6ce41fb3c4f1913be97b58dc020",
      "status": "success",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/28050611197"
    }
  ]
}