PD-clustering and factor PD-clustering