Let me say this again as some people seem to be missing the point...
White balance settings in the camera will not change the information stored for each pixel in a raw image.
As the name suggests, the raw image is exactly what the photosites record. The white balance setting will not change what is recorded for red, blue or green at all. Instead the white balance is used by the raw processor when it is converting from the raw information to something that can be displayed. So, the red, blue and green channels will record the actual levels of those (not withstanding Craig's comment about the spectra being continuous).
It is also worth noting that what is stored by the sensor is linear, basically counting the number of photons. Double the number of photons for double the amount of light. The problem here is where there isn't much light, there aren't many photons so the amount of information to store is quite low. In low light the difference in shades is quite small and won't be very accurate. The sensors work much better at the other end when you go close to blowing the highlights.
You can see it doing some simple arbitrary numbers. Lets say at one light level there are 10 photons. Double the amount of light and there are 20. Increase another stop and there are 40, and so on. When you consider that the sensors have a range of around 5 stops, that's 10 photons at one end 320 photons at the other end. Now, if you have a 5% difference in amount of light at the dark end it would be half a photon (which can't be recorded so you'd either miss it, or it would be recorded as a 10% difference. At the bright end, 5% is 16 photons so it could be recorded quite accurately.
The only settings that change what the sensor records are:
* shutter speed - a longer shutter speed will mean more photons
* aperture - a wider aperture will mean more photons
* ISO - I think. I don't really know how changing the ISO changes how the sensor records information
No other setting should have any effect on the raw image at all, other than the information about those settings being recorded in the file along with the raw image and the raw processor may (or may not) use that information when the image is converted on the computer.
Putting a filter somewhere between the subject and the sensor WILL change what the sensor records and has much the same effect as adjusting the aperture, only the filter may change the relative amount of the colours. A neutral density filter doesn't change the colours and has the same effect as adjusting the aperture (other than DOF, etc.). A magic filter will change the colours of what is stored in the raw image.
Adjustments in Photoshop (or equivalent) are essentially the same as white balance settings. All they do is change how the raw image is processed but not what is stored in the raw image. Post processing adjustments are not the same as using a filter. You MAY be able to achieve similar results, but it is definitely not the same thing. You MAY be able to produce acceptable results, but it is definitely not the same thing.