stargazerTT {SetMethods} | R Documentation |
Function for exporting a sufficienct solution from minimize in latex, html, or text format.
Description
Function for exporting a sufficienct solution from minimize in latex, html, or text format.
Usage
stargazerTT(truthtable,
show.cases = FALSE,
type = "latex",
title = "",
out = NULL,
digits = 3)
Arguments
truthtable |
A truth table obtained with the truthTable function. |
show.cases |
Logical. Should the names of cases be printed? |
type |
character string that specifies what type of output the command should produce. The possible values are "latex" (default), "html", "text". |
title |
title for the table. |
out |
name of the file to be saved containing the extension (e.g. "mysol.tex", "mysol.txt") |
digits |
To how many digits should the parameters of fit be rounded up. |
Author(s)
Ioana-Elena Oana
References
Oana, Ioana-Elena, Carsten Q. Schneider, and Eva Thomann (forthcoming). Qualitative Comparative Analysis (QCA) using R: A Gentle Introduction. Cambridge: Cambridge University Press.
Examples
# Import your data. For example:
data(SCHF)
# Get the truth table:
mytt <- truthTable(SCHF, outcome = "EXPORT",
conditions = c("EMP","BARGAIN","UNI","OCCUP","STOCK", "MA"),
incl.cut = .9, complete = TRUE)
# Export as latex:
stargazerTT(mytt)
# Export as text:
stargazerTT(mytt, type = "text")
[Package SetMethods version 4.0 Index]