If anyone here designed commercial VNAs, I'd like to call attention to some recent posts I've made to the EEVblog metrology forum on the topic of using an SA and a computer to measure amplitude and phase.
If the names Wiener, Levinson and Hilbert are unfamiliar it's not likely to make any sense.