Naturally doing story events the 'right' way tends to raise it, while doing things the 'wrong' way tends to lower it. I use quotes because sometimes it feels subjective.

My playthrough at the end of Disc 3 had maxed rank, but as I fought to max stats I found it bounced between 30 and A.