Generally you want to buy in for the maximum or near the maximum, i tend to buy in for 3/4 of the max and rebuy if i drop below half.

Times you might not want to max out are when you may want to blend in with the fish or if you've just moved up in limits and you're not quite comfortable with the thought of losing a whole buyin.