Predictions 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,
  ...
)

Arguments

object

a `fastglm_ordinal_stream` fit.

newdata, offset, type, se.fit

as in [predict.fastglm_ordinal()].

sink

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.

Value

Collected predictions or residuals, or invisibly the number of blocks supplied to `sink`.