Estimation in multitype epidemics