eelbrain.table.stats

eelbrain.table.stats(y, row, col=None, match=None, sub=None, fmt='%.4g', funcs=('mean',), ds=None, title=None, caption=None, format=True)

Make a table with statistics

Parameters
Returns

Table with statistics.

Return type

table

Examples

>>> ds = datasets.get_uts()
>>> table.stats('Y', 'A', 'B', ds=ds)
            B
     -----------------
     b0        b1
----------------------
a0   0.1668    -0.3646
a1   -0.4897   0.8746
>>> table.stats('Y', 'A', ds=ds, funcs=['mean', 'std'])
Condition   Mean     Std
--------------------------
a0          0.6691   1.37
a1          0.8596   1.192