Liu Qi, Shepherd Bryan, Li Chun
Merck & CO., Inc.
Vanderbilt University.
J Stat Softw. 2020;94(12). doi: 10.18637/jss.v094.i12. Epub 2020 Sep 3.
We present the R package for residual analysis using the probability-scale residual. This residual is well defined for a wide variety of outcome types and models, including some settings where other popular residuals are not applicable. It can be used for model diagnostics, tests of conditional associations, and covariate-adjustment for Spearman's rank correlation. These tests and measures of conditional association are applicable to any orderable variable. They use order information but do not require assigning scores to ordered categorical variables or transforming continuous variables, and therefore, can achieve a good balance between robustness and efficiency. We illustrate the usage of the package with a publicly available dataset.
我们展示了用于使用概率尺度残差进行残差分析的R软件包。这种残差对于多种结果类型和模型都有很好的定义,包括一些其他常用残差不适用的情况。它可用于模型诊断、条件关联检验以及对Spearman秩相关进行协变量调整。这些条件关联检验和度量适用于任何可排序变量。它们利用顺序信息,但不需要为有序分类变量赋值或对连续变量进行变换,因此可以在稳健性和效率之间实现良好的平衡。我们用一个公开可用的数据集来说明该软件包的用法。