{
  "_id": "6a1c0ee91d7bb097a0a2e049",
  "Package": "chandwich",
  "Title": "Chandler-Bate Sandwich Loglikelihood Adjustment",
  "Version": "1.1.6",
  "Date": "2025-12-30",
  "Authors@R": "c(\nperson(c(\"Paul\", \"J.\"), \"Northrop\", email = \"p.northrop@ucl.ac.uk\",\nrole = c(\"aut\", \"cre\", \"cph\")),\nperson(c(\"Richard\", \"E.\"), \"Chandler\", role = c(\"aut\", \"cph\"))\n)",
  "Description": "Performs adjustments of a user-supplied independence\nloglikelihood function using a robust sandwich estimator of the\nparameter covariance matrix, based on the methodology in\nChandler and Bate (2007) <doi:10.1093/biomet/asm015>.  This can\nbe used for cluster correlated data when interest lies in the\nparameters of the marginal distributions or for performing\ninferences that are robust to certain types of model\nmisspecification.  Functions for profiling the adjusted\nloglikelihoods are also provided, as are functions for\ncalculating and plotting confidence intervals, for single model\nparameters, and confidence regions, for pairs of model\nparameters.  Nested models can be compared using an adjusted\nlikelihood ratio test.",
  "License": "GPL (>= 2)",
  "LazyData": "TRUE",
  "Encoding": "UTF-8",
  "RoxygenNote": "7.3.3",
  "VignetteBuilder": "knitr",
  "URL": "https://paulnorthrop.github.io/chandwich/,\nhttps://github.com/paulnorthrop/chandwich",
  "BugReports": "https://github.com/paulnorthrop/chandwich/issues",
  "Config/testthat/edition": "3",
  "Repository": "https://paulnorthrop.r-universe.dev",
  "Date/Publication": "2026-01-01 01:46:16 UTC",
  "RemoteUrl": "https://github.com/paulnorthrop/chandwich",
  "RemoteRef": "HEAD",
  "RemoteSha": "d32529b26bcf1b68a48d5060dc817da2e7f7b899",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-05-31 10:32:41 UTC",
    "User": "root"
  },
  "Author": "Paul J. Northrop [aut, cre, cph],\nRichard E. Chandler [aut, cph]",
  "Maintainer": "Paul J. Northrop <p.northrop@ucl.ac.uk>",
  "MD5sum": "81a88f165f273611020ff2f0344c08c8",
  "_user": "paulnorthrop",
  "_type": "src",
  "_file": "chandwich_1.1.6.tar.gz",
  "_fileid": "f7f0dbbfadda0687c8a2130563e3c054bab2675aa375b81b0c0e99e04f262372",
  "_filesize": 770915,
  "_sha256": "f7f0dbbfadda0687c8a2130563e3c054bab2675aa375b81b0c0e99e04f262372",
  "_created": "2026-05-31T10:32:41.000Z",
  "_published": "2026-05-31T10:35:21.546Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 78718919982,
      "time": 130,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7316002376"
    },
    {
      "job": 78718919979,
      "time": 130,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7316002332"
    },
    {
      "job": 78718919976,
      "time": 112,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7316000604"
    },
    {
      "job": 78718919984,
      "time": 102,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7315999813"
    },
    {
      "job": 78718719699,
      "time": 198,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7315989658"
    },
    {
      "job": 78718919981,
      "time": 97,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7315999274"
    },
    {
      "job": 78718919992,
      "time": 99,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7315999496"
    },
    {
      "job": 78718919989,
      "time": 70,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7315996627"
    },
    {
      "job": 78718919994,
      "time": 94,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7315998918"
    }
  ],
  "_buildurl": "https://github.com/r-universe/paulnorthrop/actions/runs/26710132945",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/paulnorthrop/chandwich",
  "_commit": {
    "id": "d32529b26bcf1b68a48d5060dc817da2e7f7b899",
    "author": "Paul Northrop <p.northrop@ucl.ac.uk>",
    "committer": "Paul Northrop <p.northrop@ucl.ac.uk>",
    "message": "Add license file\n",
    "time": 1767231976
  },
  "_maintainer": {
    "name": "Paul J. Northrop",
    "email": "p.northrop@ucl.ac.uk",
    "login": "paulnorthrop",
    "description": "",
    "uuid": 22778905
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.3.0",
      "role": "Depends"
    },
    {
      "package": "graphics",
      "role": "Imports"
    },
    {
      "package": "methods",
      "role": "Imports"
    },
    {
      "package": "numDeriv",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "utils",
      "role": "Imports"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "sandwich",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "role": "Suggests"
    }
  ],
  "_owner": "paulnorthrop",
  "_selfowned": true,
  "_usedby": 8,
  "_updates": [
    {
      "week": "2026-01",
      "n": 12
    }
  ],
  "_tags": [],
  "_topics": [
    "clustered-data",
    "clusters",
    "composite-likelihood",
    "independence-loglikelihood",
    "mle",
    "robust",
    "sandwich",
    "statistical-inference"
  ],
  "_stars": 4,
  "_contributors": [
    {
      "user": "paulnorthrop",
      "count": 438,
      "uuid": 22778905
    }
  ],
  "_userbio": {
    "uuid": 22778905,
    "type": "user",
    "name": "Paul Northrop"
  },
  "_downloads": {
    "count": 3890,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/chandwich"
  },
  "_devurl": "https://github.com/paulnorthrop/chandwich",
  "_pkgdown": "https://paulnorthrop.github.io/chandwich/",
  "_searchresults": 18,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/chandwich.html",
    "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",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/paulnorthrop/chandwich",
  "_realowner": "paulnorthrop",
  "_cranurl": true,
  "_releases": [
    {
      "version": "1.0.0",
      "date": "2018-03-06"
    },
    {
      "version": "1.1.0",
      "date": "2018-09-10"
    },
    {
      "version": "1.1.1",
      "date": "2018-11-28"
    },
    {
      "version": "1.1.2",
      "date": "2019-07-11"
    },
    {
      "version": "1.1.3",
      "date": "2020-11-07"
    },
    {
      "version": "1.1.4",
      "date": "2021-07-02"
    },
    {
      "version": "1.1.5",
      "date": "2021-10-30"
    },
    {
      "version": "1.1.6",
      "date": "2023-08-25"
    }
  ],
  "_exports": [
    "adjust_loglik",
    "compare_models",
    "conf_intervals",
    "conf_region",
    "log_gev",
    "profile_loglik"
  ],
  "_datasets": [
    {
      "name": "owtemps",
      "title": "Oxford and Worthing annual maximum temperatures",
      "object": "owtemps",
      "class": [
        "data.frame"
      ],
      "fields": [
        "Oxford",
        "Worthing"
      ],
      "rows": 80,
      "table": true,
      "tojson": true
    },
    {
      "name": "rats",
      "title": "Rat tumor data",
      "object": "rats",
      "class": [
        "matrix",
        "array"
      ],
      "fields": [
        "y",
        "n"
      ],
      "rows": 71,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "chandwich-package",
      "title": "chandwich: Chandler-Bate Sandwich Loglikelihood Adjustment",
      "topics": [
        "chandwich-package",
        "chandwich"
      ]
    },
    {
      "page": "adjust_loglik",
      "title": "Loglikelihood adjustment using the sandwich estimator",
      "topics": [
        "adjust_loglik"
      ]
    },
    {
      "page": "anova.chandwich",
      "title": "Comparison of nested models",
      "topics": [
        "anova.chandwich"
      ]
    },
    {
      "page": "coef.chandwich",
      "title": "Extract model coefficients method for objects of class \"chandwich\"",
      "topics": [
        "coef.chandwich"
      ]
    },
    {
      "page": "compare_models",
      "title": "Comparison of nested models",
      "topics": [
        "compare_models"
      ]
    },
    {
      "page": "conf_intervals",
      "title": "Confidence intervals",
      "topics": [
        "conf_intervals"
      ]
    },
    {
      "page": "conf_region",
      "title": "Two-dimensional confidence regions",
      "topics": [
        "conf_region"
      ]
    },
    {
      "page": "confint.chandwich",
      "title": "Confidence intervals for model parameters",
      "topics": [
        "confint.chandwich"
      ]
    },
    {
      "page": "log_gev",
      "title": "The Generalised Extreme Value Log-Density Function",
      "topics": [
        "log_gev"
      ]
    },
    {
      "page": "logLik.chandwich",
      "title": "Extract log-likelihood for objects of class \"chandwich\"",
      "topics": [
        "logLik.chandwich"
      ]
    },
    {
      "page": "owtemps",
      "title": "Oxford and Worthing annual maximum temperatures",
      "topics": [
        "owtemps"
      ]
    },
    {
      "page": "plot.chandwich",
      "title": "Plot diagnostics for a chandwich object",
      "topics": [
        "plot.chandwich"
      ]
    },
    {
      "page": "plot.confint",
      "title": "Plot diagnostics for a confint object",
      "topics": [
        "plot.confint"
      ]
    },
    {
      "page": "plot.confreg",
      "title": "Plot diagnostics for a confreg object",
      "topics": [
        "plot.confreg"
      ]
    },
    {
      "page": "print.chandwich",
      "title": "Print method for objects of class \"chandwich\"",
      "topics": [
        "print.chandwich"
      ]
    },
    {
      "page": "print.compmod",
      "title": "Print method for objects of class \"compmod\"",
      "topics": [
        "print.compmod"
      ]
    },
    {
      "page": "print.confint",
      "title": "Print method for objects of class \"confint\"",
      "topics": [
        "print.confint"
      ]
    },
    {
      "page": "print.summary.chandwich",
      "title": "Print method for objects of class \"summary.chandwich\"",
      "topics": [
        "print.summary.chandwich"
      ]
    },
    {
      "page": "profile_loglik",
      "title": "Profile loglikelihood",
      "topics": [
        "profile_loglik"
      ]
    },
    {
      "page": "rats",
      "title": "Rat tumor data",
      "topics": [
        "rats"
      ]
    },
    {
      "page": "summary.chandwich",
      "title": "Summarizing adjusted loglikelihoods",
      "topics": [
        "summary.chandwich"
      ]
    },
    {
      "page": "vcov.chandwich",
      "title": "Calculate the variance-covariance matrix for an object of class \"chandwich\"",
      "topics": [
        "vcov.chandwich"
      ]
    }
  ],
  "_readme": "https://github.com/paulnorthrop/chandwich/raw/HEAD/README.md",
  "_rundeps": [
    "numDeriv"
  ],
  "_vignettes": [
    {
      "source": "chandwich-vignette.Rmd",
      "filename": "chandwich-vignette.html",
      "title": "Introducing chandwich: Chandler-Bate Sandwich Loglikelihood Adjustment",
      "author": "Paul Northrop and Richard Chandler",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Loglikelihood adjustment using the adjust_loglik function",
        "Binomial model",
        "Confidence intervals",
        "Extreme value modelling of maximum temperatures",
        "Confidence regions",
        "Comparing nested models",
        "Misspecified Poisson model",
        "References"
      ],
      "created": "2017-09-15 17:10:06",
      "modified": "2021-10-13 20:42:37",
      "commits": 25
    }
  ],
  "_score": 6.5264633438046005,
  "_indexed": true,
  "_nocasepkg": "chandwich",
  "_universes": [
    "paulnorthrop"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.1.6",
      "date": "2026-05-31T10:34:39.000Z",
      "distro": "noble",
      "commit": "d32529b26bcf1b68a48d5060dc817da2e7f7b899",
      "fileid": "43b517136918280c1d4716cfb881a19e3c0fbdfdf5246a74ccb953e44fcdc7af",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/paulnorthrop/actions/runs/26710132945"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "1.1.6",
      "date": "2026-05-31T10:34:38.000Z",
      "distro": "noble",
      "commit": "d32529b26bcf1b68a48d5060dc817da2e7f7b899",
      "fileid": "676e1e9469d8d8743c1e6f42ca8afda08aa7e7e431aac567ab00d70c34035763",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/paulnorthrop/actions/runs/26710132945"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.1.6",
      "date": "2026-05-31T10:34:28.000Z",
      "commit": "d32529b26bcf1b68a48d5060dc817da2e7f7b899",
      "fileid": "1c7ee8fb533163adcd35f70bcd45c5e53b8df27d5b31d7571f9c245be78001ec",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/paulnorthrop/actions/runs/26710132945"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "1.1.6",
      "date": "2026-05-31T10:34:22.000Z",
      "commit": "d32529b26bcf1b68a48d5060dc817da2e7f7b899",
      "fileid": "74a317debd2751d8f77c22276dad07c912787c6fd54bb055eb9c013e006a2aac",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/paulnorthrop/actions/runs/26710132945"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.1.6",
      "date": "2026-05-31T10:34:35.000Z",
      "commit": "d32529b26bcf1b68a48d5060dc817da2e7f7b899",
      "fileid": "0f9d1799d8d8f3a57267bc4bddf8bc34c5f90b97b0b20e1e8a3a606fd0cbbc48",
      "status": "success",
      "buildurl": "https://github.com/r-universe/paulnorthrop/actions/runs/26710132945"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.1.6",
      "date": "2026-05-31T10:34:00.000Z",
      "commit": "d32529b26bcf1b68a48d5060dc817da2e7f7b899",
      "fileid": "061d091ca315586ced89dbdf3311eb7da1b638457748ce86f2805db274d800dc",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/paulnorthrop/actions/runs/26710132945"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "1.1.6",
      "date": "2026-05-31T10:33:38.000Z",
      "commit": "d32529b26bcf1b68a48d5060dc817da2e7f7b899",
      "fileid": "bdb7691ac1579c8a132e82e48ee84ec94fdd76b2f6cb50caa5b01a23c52cdd90",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/paulnorthrop/actions/runs/26710132945"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "1.1.6",
      "date": "2026-05-31T10:33:53.000Z",
      "commit": "d32529b26bcf1b68a48d5060dc817da2e7f7b899",
      "fileid": "9f43c8f9a07ac1fab45bc613a638894f4a9982d4a9406a636388012fba1222b7",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/paulnorthrop/actions/runs/26710132945"
    }
  ]
}