R/ordinal-streaming.R
predict.fastglm_ordinal_stream.RdPredictions and residuals from an ordinal source fit
# S3 method for class 'fastglm_ordinal_stream'
predict(
object,
newdata = NULL,
type = c("probability", "response", "cumulative", "class", "link"),
se.fit = FALSE,
offset = NULL,
sink = NULL,
...
)
# S3 method for class 'fastglm_ordinal_stream'
residuals(
object,
type = c("probability", "cumulative", "pearson"),
sink = NULL,
...
)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.
Collected predictions or residuals, or invisibly the number of blocks supplied to `sink`.