Computing R squared with missing data