Did I find the right examples for you? yes no

All Samples(2)  |  Call(1)  |  Derive(0)  |  Import(1)

src/n/i/nipy-0.3.0/nipy/labs/group/tests/test_mixed_effects.py   nipy(Download)
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
# vi: set ft=python sts=4 ts=4 sw=4 et:
 
from ..mixed_effects import em
 
    y = X[:,0] + e1 + e2 
    vy = sy**2
    b, s2 = em(y, vy, X, niter=10)
    print b, s2