stargazerSol {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
stargazerSol(results,
outcome,
sol = 1,
show.cases = FALSE,
type = "latex",
title = "",
out = NULL,
digits = 3)
Arguments
results |
An object of class "qca": a sufficient solution obtained with the minimize function. |
outcome |
A character string with the name of the outcome in capital letters. When performing pimplot of the sufficient solution for the negated outcome one must only use the minimize() result from the sufficiency analysis of the negated outcome in the argument results. Changing the name in the argument outcome or using a tilde is not necessary, but recommended. |
sol |
A vector where the first number indicates the number of the conservative or parsimonious solution according to the order in the "qca" object. For more complicated structures of model ambiguity, the intermediate solution can also be specified by using a character string of the form "c1p3i2" where c = conservative solution, p = parsimonious solution and i = intermediate solution. |
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 parsimonious solution:
sol_yp <- minimize(SCHF, outcome = "EXPORT",
conditions = c("EMP","BARGAIN","UNI","OCCUP","STOCK", "MA"),
incl.cut = .9,
include = "?",
details = TRUE, show.cases = TRUE)
# Print in latex format:
stargazerSol(sol_yp, "EXPORT")