本文整理汇总了Python中statsmodels.stats.tests.test_weightstats.Holder.note方法的典型用法代码示例。如果您正苦于以下问题:Python Holder.note方法的具体用法?Python Holder.note怎么用?Python Holder.note使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类statsmodels.stats.tests.test_weightstats.Holder
的用法示例。
在下文中一共展示了Holder.note方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: setup_class
# 需要导入模块: from statsmodels.stats.tests.test_weightstats import Holder [as 别名]
# 或者: from statsmodels.stats.tests.test_weightstats.Holder import note [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 note [as 别名]
def __init__(self):
res2 = Holder()
#> np = pwr.2p.test(h=0.01,n=80,sig.level=0.05,alternative="less")
#> cat_items(np, "res2.")
res2.h = 0.01
res2.n = 80
res2.sig_level = 0.05
res2.power = 0.0438089705093578
res2.alternative = 'less'
res2.method = ('Difference of proportion power calculation for' +
' binomial distribution (arcsine transformation)')
res2.note = 'same sample sizes'
self.res2 = res2
self.kwds = {'effect_size': res2.h, 'nobs1': res2.n,
'alpha': res2.sig_level, 'power':res2.power, 'ratio': 1}
self.kwds_extra = {'alternative':'smaller'}
self.cls = smp.NormalIndPower