| apa_table | R Documentation |
Build APA-style table output using base R structures
apa_table(
x,
which = NULL,
diagnostics = NULL,
digits = 2,
caption = NULL,
note = NULL,
bias_results = NULL,
context = list(),
whexact = FALSE,
branch = c("apa", "facets")
)
x |
A data.frame, |
which |
Optional table selector when |
diagnostics |
Optional diagnostics from |
digits |
Number of rounding digits for numeric columns. |
caption |
Optional caption text. |
note |
Optional note text. |
bias_results |
Optional output from |
context |
Optional context list forwarded when auto-generating APA metadata for fit-based tables. |
whexact |
Logical forwarded to APA metadata helpers. |
branch |
Output branch:
|
This helper avoids styling dependencies and returns a reproducible base
data.frame plus metadata.
Supported which values:
For mfrm_fit: "summary", "person", "facets", "steps"
For diagnostics list: "overall_fit", "measures", "fit",
"reliability", "facets_chisq", "bias", "interactions",
"interrater_summary", "interrater_pairs", "obs"
For bias-result list: "table", "summary", "chi_sq"
A list of class apa_table with fields:
table (data.frame)
which
caption
note
digits
branch, style
table: plain data.frame ready for export or further formatting.
which: source component that produced the table.
caption/note: manuscript-oriented metadata stored with the table.
Build table object with apa_table(...).
Inspect quickly with summary(tbl).
Render base preview via plot(tbl, ...) or export tbl$table.
fit_mfrm(), diagnose_mfrm(), build_apa_outputs(),
reporting_checklist(), mfrmr_reporting_and_apa
toy <- load_mfrmr_data("example_core")
fit <- fit_mfrm(toy, "Person", c("Rater", "Criterion"), "Score", method = "JML", maxit = 25)
tbl <- apa_table(fit, which = "summary", caption = "Model summary", note = "Toy example")
tbl_facets <- apa_table(fit, which = "summary", branch = "facets")
summary(tbl)
p <- plot(tbl, draw = FALSE)
p_facets <- plot(tbl_facets, type = "numeric_profile", draw = FALSE)
if (interactive()) {
plot(
tbl,
type = "numeric_profile",
main = "APA Table Numeric Profile (Customized)",
palette = c(numeric_profile = "#2b8cbe", grid = "#d9d9d9"),
label_angle = 45
)
}
class(tbl)
tbl$note
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.