本文整理汇总了Python中statsmodels.stats.tests.test_weightstats.Holder.d方法的典型用法代码示例。如果您正苦于以下问题:Python Holder.d方法的具体用法?Python Holder.d怎么用?Python Holder.d使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类statsmodels.stats.tests.test_weightstats.Holder
的用法示例。
在下文中一共展示了Holder.d方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: setup_class
# 需要导入模块: from statsmodels.stats.tests.test_weightstats import Holder [as 别名]
# 或者: from statsmodels.stats.tests.test_weightstats.Holder import d [as 别名]
def setup_class(cls):
#> example from above
# results copied not directly from R
res2 = Holder()
res2.n = 80
res2.d = 0.3
res2.sig_level = 0.05
res2.power = 0.475100870572638
res2.alternative = 'two.sided'
res2.note = 'NULL'
res2.method = 'two sample power calculation'
cls.res2 = res2
cls.kwds = {'effect_size': res2.d, 'nobs1': res2.n,
'alpha': res2.sig_level, 'power':res2.power, 'ratio': 1}
cls.kwds_extra = {}
cls.cls = smp.NormalIndPower
示例2: __init__
# 需要导入模块: from statsmodels.stats.tests.test_weightstats import Holder [as 别名]
# 或者: from statsmodels.stats.tests.test_weightstats.Holder import d [as 别名]
def __init__(self):
res2 = Holder()
#> p = pwr.t2n.test(d=0.1,n1=20, n2=30,sig.level=0.05,alternative="greater")
#> cat_items(p, "res2.")
res2.n1 = 20
res2.n2 = 30
res2.d = 0.1
res2.sig_level = 0.05
res2.power = 0.09623589080917805
res2.alternative = 'greater'
res2.method = 't test power calculation'
self.res2 = res2
self.kwds = {'effect_size': res2.d, 'nobs1': res2.n1,
'alpha': res2.sig_level, 'power':res2.power, 'ratio': 1.5}
self.kwds_extra = {'alternative': 'larger'}
self.cls = smp.TTestIndPower