stargazerTT | R Documentation |
Function for exporting a sufficienct solution from minimize in latex, html, or text format.
stargazerTT(truthtable,
show.cases = FALSE,
type = "latex",
title = "",
out = NULL,
digits = 3)
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. |
Ioana-Elena Oana
Oana, Ioana-Elena, Carsten Q. Schneider, and Eva Thomann (forthcoming). Qualitative Comparative Analysis (QCA) using R: A Gentle Introduction. Cambridge: Cambridge University Press.
# 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")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.