N.Y. Criminal Procedure Law § 720.20
1. Upon conviction of an eligible youth, the court must order a pre-sentence investigation of the defendant. After receipt of a written report of the investigation and at the time of pronouncing sentence the court must determine whether or not the eligible youth is a youthful offender. Such determination shall be in accordance with the following criteria:
5.
(b) In considering whether such individual should be determined to be a youthful offender pursuant to paragraph (a) of this subdivision, the court shall consider the following factors: