lt_rSquaredRow | R Documentation |
Given a mat
produced by regTable()
in which all
regressions are of class lm
, this function returns a footer row that
indicates R2 for each model in mat
.
lt_rSquaredRow( mat = parent.frame()$mat, decimalPlaces = parent.frame()$decimalPlaces )
mat |
A matrix, typically a |
decimalPlaces |
Integer. See |
A vector of strings. The first element in the vector is "R$^2$".
The remaining elements are strings that indicate
R2 for each model in mat
.
The strings are rounded to the number of digits specified by the
decimalPlaces
argument.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.