xtable.A3: Nicely Formatted Fit Results

Description Usage Arguments Examples

Description

Creates a LaTeX table of results. Depends on the xtable package.

Usage

1
2
## S3 method for class 'A3'
xtable(x, ...)

Arguments

x

an A3 object.

...

additional arguments passed to the print.xtable function.

Examples

1
2
x <- a3.lm(rating ~ ., attitude, p.acc = NULL)
 xtable(x)

Example output

Loading required package: xtable
Loading required package: pbapply
% latex table generated in R 3.4.4 by xtable 1.8-3 package
% Tue Dec  4 08:44:52 2018
\begin{table}[ht]
\centering
\begin{tabular}{l|rr}
  \hline
 & Average Slope & CV $R^2$ \\ 
  \hline
-Full Model- &  & $59.0 \%$ \\ 
  (Intercept) & $10.7871$ & $-  4.1 \%$ \\ 
  complaints & $ 0.6132$ & $+ 21.0 \%$ \\ 
  privileges & $-0.0731$ & $+  0.2 \%$ \\ 
  learning & $ 0.3203$ & $+  7.9 \%$ \\ 
  raises & $ 0.0817$ & $-  1.2 \%$ \\ 
  critical & $ 0.0384$ & $-  5.9 \%$ \\ 
  advance & $-0.2171$ & $+  4.0 \%$ \\ 
   \hline
\end{tabular}
\end{table}

A3 documentation built on May 2, 2019, 9:36 a.m.

Related to xtable.A3 in A3...