Gravar-mail: Links between analysis of surrogate endpoints and endogeneity