Enrico multinear rebased

rebased version of PR #683 multilinear model in sandbox

changes
rebase : remove duplicate commits, and a merge
compatibility : protect against older scipy (chisquare_contingency) and pandas (index.is_unique)
add example script based on docstrings

looks good, no tests, but is in sandbox