-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathREADME.Rmd
48 lines (35 loc) · 2.01 KB
/
README.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
---
output:
md_document:
variant: markdown_github
---
```{r setup, echo = FALSE}
knitr::opts_chunk$set(
cache = TRUE,
collapse = TRUE,
comment = "#>",
fig.align = "center",
fig.path = "man/figures/README-"
)
```
# sure: Surrogate Residuals <img src="man/figures/sure-logo.png" align="right" width="130" height="150" />
<!-- [![CRAN_Status_Badge](http://www.r-pkg.org/badges/version/sure)](https://cran.r-project.org/package=sure) -->
[![Build Status](https://travis-ci.org/koalaverse/sure.svg?branch=master)](https://travis-ci.org/koalaverse/sure)
[![AppVeyor Build Status](https://ci.appveyor.com/api/projects/status/github/koalaverse/sure?branch=master&svg=true)](https://ci.appveyor.com/project/koalaverse/sure)
[![codecov](https://codecov.io/gh/koalaverse/sure/branch/master/graph/badge.svg)](https://codecov.io/gh/koalaverse/sure)
## Overview
An R package for constructing **SU**rrogate-based **RE**siduals and diagnostics for ordinal and general regression models; based on the approach described in [Dungang and Zhang (2017)](http://www.tandfonline.com/doi/abs/10.1080/01621459.2017.1292915?journalCode=uasa20).
## Installation
The `sure` package is [currently listed on CRAN](https://CRAN.R-project.org/package=sure) and can easily be installed:
```r
# Install from CRAN (recommended)
install.packages("sure")
# Alternatively, install the development version from GitHub
if (!requireNamespace("devtools")) install.packages("devtools")
devtools::install_github("koalaverse/sure")
```
## References
Liu, D. and Zhang, H. Residuals and Diagnostics for Ordinal Regression Models: A Surrogate Approach.
*Journal of the American Statistical Association* (accepted). URL
http://www.tandfonline.com/doi/abs/10.1080/01621459.2017.1292915?journalCode=uasa20
Greenwell, B.M., McCarthy, A.J., Boehmke, B.C. & Dungang, L. (2018) "Residuals and diagnostics for binary and ordinal regression models: An introduction to the sure package." The R Journal (pre-print). URL https://journal.r-project.org/archive/2018/RJ-2018-004/index.html