Now, it just so happens that there's a Tri-Rail station right next to the building I work in, and I happen to live less than a mile from a Tri-Rail station. When when I ran the numbers a few years ago, it was still cheaper to drive than to ride the train (mainly because I work from home two days a week). It's not a time factor either---I drive during non-rush hour (a perk of being a programmer) and either way, it takes about the same time to drive as to take the train (I have taken the trip once or twice).
Now that gas prices have plummeted, even if I had to drive into the office five days a week, it would still be cheaper.
That said, there are people in the office that take the train, but they live further from the office than I do and for them, it is cost effective, even if they arrive late to the office about 10% of the time (mostly due to suicides and people stopping on the rails).