r-squared simulation