Predictions and residuals from an ordinal source fit
# S3 method for fastglm_ordinal_stream
predict(
object,
newdata = NULL,
type = c("probability", "response", "cumulative", "class", "link"),
se.fit = FALSE,
offset = NULL,
sink = NULL,
...
)# S3 method for fastglm_ordinal_stream
residuals(
object,
type = c("probability", "cumulative", "pearson"),
sink = NULL,
...
)
Collected predictions or residuals, or invisibly the number of blocks supplied to `sink`.
a `fastglm_ordinal_stream` fit.
as in [predict.fastglm_ordinal()].
optional function of `(value, chunk_index)` that receives each result block, for example to write it to a file. Its return value is ignored. Without a function, all blocks are collected into a single R object.
further method arguments.