R/print.R
fastglm-prediction-methods.RdPredictions 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, ...)a prediction returned with se.fit=TRUE by a fastglm model.
optional row names for the extracted data frame.
logical, passed to the data-frame constructor.
additional arguments, currently unused.
number of significant digits used for display.
maximum number of prediction/component rows to print;
use Inf to display all rows. Extraction always returns all rows.
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.