Linear model on blocked data