Description Usage Arguments Details Value Author(s) References Examples
Makes a LaTeX table of strategic model results.
1 2 3 4 |
x |
a fitted model of class |
digits |
number of digits to print. |
scientific |
logical or integer value to control use of scientific
notation. See |
blankfill |
text to fill empty cells (those where a certain variable did not enter the given equation). |
math.style.negative |
whether negative signs should be "math style" or
plain hyphens. Defaults to |
file |
file to save the output in. Defaults to |
floatplace |
where to place the table float; e.g., for
|
caption |
caption to use (none if |
label |
reference label to use (none if |
rowsep |
amount of space (in points) to put between rows. |
useboot |
logical: use bootstrap estimates (if available) to calculate standard errors? |
latexTable prints LaTeX code for the presentation of results from a
strategic model. Each row contains one regressor, and each column contains
one of the utility (or variance term) equations in the model. For example,
in a model fit with egame12, the four columns will be u11,
u13, u14, and u24 respectively. Each cell contains the estimated parameter,
atop its standard error in parentheses. Cells that are empty because a
regressor is not included in a particular equation are filled with the
string specified in the option blankfill. Signorino and Tarar (2006,
p. 593) contains a table of this variety.
The table generated depends on the multirow package for LaTeX, so
make sure to include \usepackage{multirow} in the preamble of your
document.
The digits option does not yet work seamlessly; you may have to
resort to trial and error.
x, invisibly.
Brenton Kenkel (brenton.kenkel@gmail.com)
Curtis S. Signorino and Ahmer Tarar. 2006. "A Unified Theory and Test of Extended Immediate Deterrence." American Journal of Political Science 50(3):586–605.
1 2 3 4 5 6 7 8 9 10 11 12 | data("war1800")
f1 <- esc + war ~ s_wt_re1 + revis1 | 0 | balanc + revis1 | balanc
m1 <- egame12(f1, data = war1800)
latexTable(m1)
latexTable(m1, digits = 8)
latexTable(m1, blankfill = "--") ## Dashes in blank cells
## Not run:
latexTable(m1, file = "my_table.tex") ## Write to file
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.