powered by
Produces a math-mode formatted string for R-squared.
Rsq(R, fmt = "$R^2 = %6.4f$", adj = FALSE)
The R-squared value
A formatting string for LaTeX
If TRUE appends 'adjusted ' to the format string
A string that will be correctly formatted by LaTeX
Sweave
# NOT RUN { r = 0.99 Rsq(r) # }
Run the code above in your browser using DataLab