Factor models for large and incomplete data sets with unknown group structure