Predictions requested with se.fit=TRUE retain their fit and se.fit components and print aligned estimates and standard errors. For matrix predictions, each row and component (such as an outcome category) occupies one row of the displayed or extracted table. Missing standard errors remain missing, including for collapsed ordinal categories.

# S3 method for class 'fastglm_prediction'
as.data.frame(x, row.names = NULL, optional = FALSE, ...)

# S3 method for class 'fastglm_prediction'
print(x, digits = max(3L, getOption("digits") - 3L), max.rows = 20L, ...)

Arguments

x

a prediction returned with se.fit=TRUE by a fastglm model.

row.names

optional row names for the extracted data frame.

optional

logical, passed to the data-frame constructor.

...

additional arguments, currently unused.

digits

number of significant digits used for display.

max.rows

maximum number of prediction/component rows to print; use Inf to display all rows. Extraction always returns all rows.

Value

The print method invisibly returns x. as.data.frame() returns row identifiers, component labels for matrix predictions, and numeric fit and se.fit columns at full precision. Original matrix dimensions, names, and any model-specific metadata remain in x.