it won't - it requires arrays. do i need to change the logic to allow lists
of lists?


On Wed, May 14, 2014 at 12:07 PM, Jai Ram Rideout
<notifications@github.com>wrote:

> In skbio/math/stats/test.py:
>
> > -    """G test for fit between two lists of counts.
> > -
> > -    Usage: test, prob = G_fit(obs, exp, williams)
> > -
> > -    obs and exp are two lists of numbers.
> > -    williams is a boolean stating whether to do the Williams correction.
> > -
> > -    SUM(2 f(obs)ln (f(obs)/f(exp)))
> > -
> > -    See Sokal and Rohlf chapter 17.
> > +def G_stat(data):
> > +    """Calculate the G statistic for data.
> > +
> > +    Parameters
> > +    ----------
> > +    data : list of arrays
>
> Can you please update to iterable of 1-D array_like and ensure that the
> code works with lists of lists and lists of np.arrays?
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/biocore/scikit-bio/pull/342/files#r12651305>
> .
>