A simultaneous regression model for the mean and covariance