powered by
A function to calculate the rSquared.
rSquared(obs, res)
A vector of the observed values.
A vector of residuals
rsquared value
# NOT RUN { obs=runif(400,1,100) pre=obs+rnorm(400,5,10) res=obs-pre rSquared(obs,res) # }
Run the code above in your browser using DataLab