The linear relationship between transcranial Doppler pulsatility indices and intracranial pressure is influenced by traumatic brain injury and vasospasm.