【发布时间】:2014-02-06 18:37:15
【问题描述】:
我希望能够针对理论分位数进行 qqplots。我已经知道qqnorm() 会为正态分布做到这一点,但这对我来说是一个非常有限的工具。另外,我注意到有些人从给定的分布中模拟随机过程,并用它来与样本数据进行比较,这并不完全严格,因为它取决于模拟的方法。所以我的例子是将样本数据与几何分布进行比较:
#sample data
var=rgeom(prob=0.3, n=100)
#QQplot against a theoretical geometric distribution with prob=0.5
【问题讨论】:
标签: r plot statistics