predict.osmultinom: Predict New Examples Based on Observation Specific...

Description Usage Arguments Details Value See Also

View source: R/osmultinom.R

Description

Predict new examples in conjunction with osmultinom.

Usage

1
2
3
  ## S3 method for class 'osmultinom'
 predict(object, newdata,
    type = c("class", "probs"), ...)

Arguments

object

Object of class "osmultinom".

newdata

A data.frame of cases to be classified or, if object has a formula, a data.frame with columns of the same names as the variables used. A vector will be interpreted as a row vector. If newdata is missing, an attempt will be made to retrieve the data used in osmultinom.

type

Type of output.

...

Arguments passed to or from other methods.

Details

This function is a method for the generic function predict() for class "osmultinom". It can be invoked by calling predict(x) for an object x of the appropriate class, or directly by calling predict.osmultinom(x) regardless of the class of the object.

Value

If type = "class", ; if type = "probs", .

See Also

osmultinom, osnnet, predict.osnnet, predict.nnet, nnet.


locClass documentation built on May 2, 2019, 5:21 p.m.