Quantile-Quantile (Q-Q) plots are often difficult to interpret because it is unclear how large the deviation from the theoretical distribution must be to indicate a lack of fit. Most Q-Q plots could benefit from the addition of meaningful global testing bands, but the use of such bands unfortunately remains rare because of the drawbacks of current approaches and packages. These drawbacks include incorrect global Type I error rate, lack of power to detect deviations in the tails of the distribution, relatively slow computation for large data sets, and limited applicability. To solve these problems, we apply the equal local levels global testing method, which we have implemented in the R Package qqconf, a versatile tool to create Q-Q plots and probability-probability (P-P) plots in a wide variety of settings, with simultaneous testing bands rapidly created using recently-developed algorithms. qqconf can easily be used to add global testing bands to Q-Q plots made by other packages. In addition to being quick to compute, these bands have a variety of desirable properties, including accurate global levels, equal sensitivity to deviations in all parts of the null distribution (including the tails), and applicability to a range of null distributions. We illustrate the use of qqconf in several applications: assessing normality of residuals from regression, assessing accuracy of p values, and use of Q-Q plots in genome-wide association studies.
brolgar: An R package to BRowse Over Longitudinal Data Graphically and Analytically in R
纵向(面板)数据提供了检查个人的时间模式的机会,因为测量是在不同的,往往是不规则的,时间点收集同一个人。数据通常使用“意大利面条图”可视化,其中为每个个体绘制线图。当覆盖在一个图中时,它可以具有一碗意大利面条的外观。即使是少量的主题,这些情节也太过超载,不容易阅读。个体差异的有趣方面在噪音中消失了。纵向数据通常使用分层线性模型建模,以捕获总体趋势和个体之间的变化,同时考虑各种依赖程度。然而,这些模型可能难以拟合,并且可能会错过不寻常的个体模式。更好的视觉工具可以帮助诊断纵向模型,并更好地捕捉个人经验。本文介绍了R软件包,brolgar(BRowse over纵向数据Graphically and Analytically in R),它提供了识别和总结纵向数据中有趣的个体模式的工具。
cgam: An R Package for the Constrained Generalized Additive Model
cgam包包含拟合广义可加模型的例程,其中可以使用形状和平滑度假设对组件进行建模。主程序是cgam和19个符号程序,以表明响应和每个预测器之间的关系,满足约束条件,如单调性,凸性,它们的组合,树和伞排序。用户可以指定约束样条来拟合连续预测器的分量,以及序数预测器的各种类型的排序。此外,用户可以指定参数化建模的协变量。似然最大化的集合是一个多面凸锥,通过将数据向量投影到锥上来获得最小二乘解。对于广义模型,拟合是通过迭代重新加权圆锥投影获得的。圆锥信息标准被提供并且可以用于比较变量和形状的组合的拟合。此外,例程wps使用扭曲平面样条在二维中实现单调回归,而没有加性假设。图形例程plotpersp将绘制一个选定的预测因子对的估计平均表面,给定一个cgam或wps对象。这个软件包现在可以从Comprehensive R Archive Network获得,网址是http://CRAN.R-project.org/package=cgam。
TwoTimeScales: An R-package for Smoothing Hazards with Two Time Scales
Max Planck Institute for Demographic Research(马克斯·普朗克人口研究研究所);Leiden University Medical Center(莱顿大学医学中心);Erasmus University Medical Center(伊拉斯谟斯大学医学中心)
Extending the saemix package for R to fit non Gaussian outcomes
Université Paris Cité(巴黎西岱大学);Université Sorbonne Paris Nord(北索邦大学);Inserm, IAME(法国国家健康与医学研究院,IAME实验室);Université Paris-Saclay(巴黎萨克雷大学);INRAE, MaIAGE(法国国家农业、食品与环境研究所,MaIAGE实验室);Ecole Polytechnique(巴黎综合理工学院)