lt_rSquaredRow: Specify a footer row that indicates R^2 for each regression.

lt_rSquaredRowR Documentation

Specify a footer row that indicates R2 for each regression.

Description

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.

Usage

lt_rSquaredRow(
  mat = parent.frame()$mat,
  decimalPlaces = parent.frame()$decimalPlaces
)

Arguments

mat

A matrix, typically a regTable object.

decimalPlaces

Integer. See latexTable.

Value

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.


jbullock35/Bullock documentation built on April 1, 2022, 6:21 p.m.