There's definitely variation from company to company, but the gap isn't huge. Let's say the private research role got me $30k more than engineering. It would take at least 16 years to make up for the 5-6 I spend for a phd. Lots of variables though. I made the right choice for myself.