Incompetent to stand trial refers to the legal status of an individual who lacks a rational understanding of the charges against him or her, an understanding of the proceedings of hi s or her trial, or the ability to participate in his or her own defense.