{
  "_id": "6a1f16f1b401979e7341e988",
  "Package": "QuantileGradeR",
  "Title": "Quantile-Adjusted Restaurant Grading",
  "Version": "0.1.1",
  "Date": "2017-02-06",
  "Author": "Zoe Ashwood <zashwood@law.stanford.edu>, Becky Elias\n<Becky.Elias@kingcounty.gov>, Daniel E. Ho\n<dho@law.stanford.edu>",
  "Maintainer": "Zoe Ashwood <zashwood@law.stanford.edu>",
  "Description": "Implementation of the food safety restaurant grading\nsystem adopted by Public Health - Seattle & King County (see\nAshwood, Z.C., Elias, B., and Ho. D.E. \"Improving the\nReliability of Food Safety Disclosure: A Quantile Adjusted\nRestaurant Grading System for Seattle-King County\" (working\npaper)). As reported in the accompanying paper, this package\nallows jurisdictions to easily implement refinements that\naddress common challenges with unadjusted grading systems.\nFirst, in contrast to unadjusted grading, where the most recent\nsingle routine inspection is the primary determinant of a\ngrade, grading inputs are allowed to be flexible. For instance,\nit is straightforward to base the grade on average inspection\nscores across multiple inspection cycles. Second, the package\ncan identify quantile cutoffs by inputting substantively\nmeaningful regulatory thresholds (e.g., the proportion of\nestablishments receiving sufficient violation points to warrant\na return visit). Third, the quantile adjustment equalizes the\nproportion of establishments in a flexible number of grading\ncategories (e.g., A/B/C) across areas (e.g., ZIP codes,\ninspector areas) to account for inspector differences. Fourth,\nthe package implements a refined quantile adjustment that\naddresses two limitations with the stats::quantile() function\nwhen applied to inspection score datasets with large numbers of\nscore ties. The quantile adjustment algorithm iterates over\nquantiles until, over all restaurants in all areas, grading\nproportions are within a tolerance of desired global\nproportions. In addition the package allows a modified\ndefinition of \"quantile\" from \"Nearest Rank\". Instead of\nrequiring that at least p[1]% of restaurants receive the top\ngrade and at least (p[1]+p[2])% of restaurants receive the top\nor second best grade for quantiles p, the algorithm searches\nfor cutoffs so that as close as possible p[1]% of restaurants\nreceive the top grade, and as close as possible to p[2]% of\nrestaurants receive the second top grade.",
  "URL": "http://www.kingcounty.gov/depts/health/environmental-health/food-safety/inspection-system/food-safety-rating.aspx",
  "License": "GPL (>= 2)",
  "LazyData": "TRUE",
  "RoxygenNote": "5.0.1",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-05-17 06:09:53 UTC",
    "User": "root"
  },
  "Repository": "https://king-county-restaurant-grading.r-universe.dev",
  "Date/Publication": "2017-02-06 20:22:48 UTC",
  "RemoteUrl": "https://github.com/cran/QuantileGradeR",
  "RemoteRef": "HEAD",
  "RemoteSha": "5a1903963062f97084baad15ddf549ba8b15516a",
  "MD5sum": "7537ee1e3979da5a6877972bc1553180",
  "_user": "king-county-restaurant-grading",
  "_type": "src",
  "_file": "QuantileGradeR_0.1.1.tar.gz",
  "_fileid": "8400895e7b974450d907400b28928a5215ffb70d70f439034c38cbf6d30d2c8f",
  "_filesize": 143481,
  "_sha256": "8400895e7b974450d907400b28928a5215ffb70d70f439034c38cbf6d30d2c8f",
  "_created": "2026-05-17T06:09:53.000Z",
  "_published": "2026-06-02T17:46:25.461Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 79135433810,
      "time": 130,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7039896392"
    },
    {
      "job": 79135434663,
      "time": 96,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7039892580"
    },
    {
      "job": 79135434208,
      "time": 118,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7039892961"
    },
    {
      "job": 79135434321,
      "time": 177,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7039896459"
    },
    {
      "job": 79135433941,
      "time": 171,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7039880728"
    },
    {
      "job": 79135433354,
      "time": 88,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7365514259"
    },
    {
      "job": 79135433821,
      "time": 63,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7039888404"
    },
    {
      "job": 79135434749,
      "time": 56,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7039887718"
    },
    {
      "job": 79135434074,
      "time": 70,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7039889157"
    }
  ],
  "_buildurl": "https://github.com/r-universe/king-county-restaurant-grading/actions/runs/25983103470",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/cran/QuantileGradeR",
  "_commit": {
    "id": "5a1903963062f97084baad15ddf549ba8b15516a",
    "author": "Zoe Ashwood <zashwood@law.stanford.edu>",
    "committer": "cran-robot <csardi.gabor+cran@gmail.com>",
    "message": "version 0.1.1\n",
    "time": 1486412568
  },
  "_maintainer": {
    "name": "Zoe Ashwood",
    "email": "zashwood@law.stanford.edu",
    "login": "king-county-restaurant-grading",
    "description": "",
    "uuid": 25397100
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.2.3",
      "role": "Depends"
    },
    {
      "package": "stats",
      "role": "Imports"
    }
  ],
  "_owner": "cran",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [],
  "_tags": [],
  "_stars": 0,
  "_contributors": [
    {
      "user": "king-county-restaurant-grading",
      "count": 2,
      "uuid": 25397100
    }
  ],
  "_userbio": {
    "uuid": 25397100,
    "type": "user",
    "name": "King-County-Restaurant-Grading"
  },
  "_downloads": {
    "count": 85,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/QuantileGradeR"
  },
  "_searchresults": 2,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/QuantileGradeR.html",
    "manual.pdf"
  ],
  "_realowner": "king-county-restaurant-grading",
  "_cranurl": false,
  "_releases": [
    {
      "version": "0.1",
      "date": "2017-02-04"
    },
    {
      "version": "0.1.1",
      "date": "2017-02-06"
    }
  ],
  "_exports": [
    "createCutoffsDF",
    "findCutoffs",
    "gradeAllBus",
    "gradeBus",
    "percentileSeek",
    "updateGamma"
  ],
  "_datasets": [
    {
      "name": "X.kc",
      "title": "Example Inspection Scores Matrix.",
      "object": "X.kc",
      "class": [
        "matrix",
        "array"
      ],
      "fields": [
        "most.recent",
        "second.last",
        "third.last",
        "fourth.last"
      ],
      "rows": 1557,
      "table": true,
      "tojson": true
    },
    {
      "name": "zips.kc",
      "title": "Example ZIP Code Vector.",
      "object": "zips.kc",
      "class": [
        "character"
      ],
      "fields": [],
      "table": false,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "findCutoffs",
      "title": "Find Cutoff Values.",
      "topics": [
        "findCutoffs"
      ]
    },
    {
      "page": "gradeAllBus",
      "title": "Grade Businesses.",
      "topics": [
        "gradeAllBus"
      ]
    },
    {
      "page": "X.kc",
      "title": "Example Inspection Scores Matrix.",
      "topics": [
        "X.kc"
      ]
    },
    {
      "page": "zips.kc",
      "title": "Example ZIP Code Vector.",
      "topics": [
        "zips.kc"
      ]
    }
  ],
  "_rundeps": [],
  "_score": 1,
  "_indexed": true,
  "_nocasepkg": "quantilegrader",
  "_universes": [
    "king-county-restaurant-grading"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.1",
      "date": "2026-05-17T06:12:12.000Z",
      "distro": "noble",
      "commit": "5a1903963062f97084baad15ddf549ba8b15516a",
      "fileid": "e90f5a69ef034bf61ad26969b0aa03453f5a6704e16f6ceae6fdab2aa64e8792",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/king-county-restaurant-grading/actions/runs/25983103470"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.1.1",
      "date": "2026-05-17T06:11:39.000Z",
      "distro": "noble",
      "commit": "5a1903963062f97084baad15ddf549ba8b15516a",
      "fileid": "35ec5243fdbc456867399e284655df706850201ef9fadb3712c1a44c07667c0f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/king-county-restaurant-grading/actions/runs/25983103470"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.1.1",
      "date": "2026-05-17T06:11:47.000Z",
      "commit": "5a1903963062f97084baad15ddf549ba8b15516a",
      "fileid": "36410a333dc08255319a91a2b61fa08fbd3689890eff7e454f164997b04f4b3c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/king-county-restaurant-grading/actions/runs/25983103470"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.1.1",
      "date": "2026-05-17T06:12:12.000Z",
      "commit": "5a1903963062f97084baad15ddf549ba8b15516a",
      "fileid": "9272de1d7bb470fd0f0d89362f518a74daf1c6eabba5006def402e49e026c506",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/king-county-restaurant-grading/actions/runs/25983103470"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.1.1",
      "date": "2026-05-17T06:10:57.000Z",
      "commit": "5a1903963062f97084baad15ddf549ba8b15516a",
      "fileid": "ca7319c88c4ac9eb5a9a483cffc489018dde4bdef53548db6eef198fe113de58",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/king-county-restaurant-grading/actions/runs/25983103470"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.1.1",
      "date": "2026-05-17T06:10:55.000Z",
      "commit": "5a1903963062f97084baad15ddf549ba8b15516a",
      "fileid": "486e1dc4e8f684d078d58d56c4edd9dc869115ddcb5ff6ef4ed2163b4d6dc4b3",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/king-county-restaurant-grading/actions/runs/25983103470"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.1.1",
      "date": "2026-05-17T06:11:05.000Z",
      "commit": "5a1903963062f97084baad15ddf549ba8b15516a",
      "fileid": "70335792fb7b1cce53dc4042476d514224eeaa0154fa3415e23728e07553337f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/king-county-restaurant-grading/actions/runs/25983103470"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.1.1",
      "date": "2026-06-02T17:46:10.000Z",
      "commit": "5a1903963062f97084baad15ddf549ba8b15516a",
      "fileid": "3dc8d76ca2f9e9a33d710de94fa94228e0f861b38d59a48d5e5a50553ffeecb2",
      "status": "success",
      "buildurl": "https://github.com/r-universe/king-county-restaurant-grading/actions/runs/25983103470"
    }
  ]
}