Ordinary least squares and instrumental-variables estimators for any outcome and heterogeneity | Synapse