Changing analogWrite() function frequency

This page talks about fast pwm on the leonardo, but is just as useful for a nano (I've tried it)