Modelling the cause of dependency with application to filaria infection.