Skip to contents

publication_table() formats the model summaries most often needed in papers and reports. Use tidy(), glance(), or reporting_table() when you need numeric columns for further calculation; use publication_table() when the next step is rendering.

Usage

publication_table(
  object,
  table = c("coefficients", "model", "predictions"),
  newdata = NULL,
  by = NULL,
  probs = c(0.1, 0.5, 0.9),
  threshold = NULL,
  direction = c("above", "below"),
  conf.level = 0.95,
  include_vcov = TRUE,
  vcov_method = "analytical",
  digits = 3,
  p_digits = 3,
  output = c("data.frame", "latex", "kable", "gt", "flextable"),
  caption = NULL,
  ...
)

Arguments

object

A fitted gamlss.longitudinal object.

table

Table to build: fixed coefficients, model fit statistics, or grouped predictions.

newdata

Data used for prediction tables. Defaults to the fitted observed model frame when omitted.

by

Optional grouping columns for prediction tables.

probs

Quantiles to include in prediction tables.

threshold

Optional threshold for prediction probabilities.

direction

Probability direction when threshold is supplied.

conf.level

Confidence level for coefficient intervals.

include_vcov

Logical; include coefficient uncertainty when possible.

vcov_method

Variance-covariance method passed to summary methods.

digits

Number of decimal places for estimates and intervals.

p_digits

Number of decimal places for p-values.

output

Output format. "data.frame" returns a formatted data frame; "latex" returns LaTeX source, and "kable", "gt", and "flextable" use optional reporting packages.

caption

Optional table caption for rendered outputs.

...

Additional arguments passed to the underlying table builder.

Value

A formatted data frame, LaTeX knitr_kable, knitr_kable, gt_tbl, or flextable object depending on output.