Extracting means and covariances from a model