I just go by what was in there to begin with, but if you can look at the schematic and figure out what the maximum voltage across the resistor could be, you can calculate the wattage and then put in a safety factor of 1.5X or so. With higher values you can often use 1/4W resistors to replace larger carbons, but watch out for the maximum voltage ratings. Even if the power is OK, resistors also have maximum voltage limits that are lower than you might think. That's why I use big RN70D parts in some locations in tube amps.