0

I am trying to replicate a study that has generating simulated data with the following variables and assumptions $x_j\sim U[0,1]$, and $j = (1,2,\dots,N)$ with

$$z_j = x_j + \sigma_z \epsilon_j$$

where, $\epsilon_j\sim N(0,1)$ and then state "we select the value $\sigma_z$ so that $R^2 = 0.75$", I believe $R^2 = 1 - \frac{\sum_j (z_j - x_j)^2}{\sum_j (z_j - \bar{z})^2}$

But I am struggling to figure how to address this problem.

Cyrillm_44
  • 131
  • 4

0 Answers0