
Last chance! 50% off unlimited learning
Sale ends in
A generic function for pretty printing in (semi) APA Style
# S3 method for SEMSummary
APAStyler(
object,
digits = 2,
type = c("cov", "cor", "both"),
stars = FALSE,
file = ifelse(.Platform$OS.type == "windows", "clipboard", FALSE),
sep = "\t",
print = TRUE,
...
)
SEMSummary
object
The number of digits to round results to. Defaults to 2.
A character vector giving what to print. Defaults to ‘cov’, the covariances. Other options are ‘cor’ and ‘both’.
A logical value whether to include significance values as stars (*** p < .001, ** p < .01, * p < .05).
An optional argument indicating whether the output should be written to a file.
Character what the separator for the table should be. Defaults to tabs.
A logical argument, whether or not to print results to screen.
This is distinct from saving them to a file. Defaults to TRUE
for back compatibility.
Additional argiuments passed on to write.table
.
m <- SEMSummary(~., data = mtcars)
APAStyler(m, type = "cor", stars = FALSE, file = FALSE)
APAStyler(m, type = "cov", stars = FALSE, file = FALSE)
APAStyler(m, type = "both", stars = FALSE, file = FALSE)
APAStyler(m, type = "cor", stars = TRUE, file = FALSE)
APAStyler(m, type = "cov", stars = TRUE, file = FALSE)
APAStyler(m, type = "both", stars = TRUE, file = FALSE)
Run the code above in your browser using DataLab