R: Extract Model Fitted Values

fitted {rknn} | R Documentation

## Extract Model Fitted Values

### Description

Extract Random KNN fitted values.

### Usage

    ## S3 method for class 'rknn'
    fitted(object, ...)

### Arguments

`object` | A rknnobject.
`...` | Additional arguments.

### Value

A vector of fitted values.

### Author(s)

Shengqiao Li<lishengqiao@yahoo.com>

### Examples

    ## Not run:
      golub.train<- t(scale(golubTrain));
      golub.test<- t(scale(golubTest));
      golub.rnn<- randomKNN(data=golub.train, newdata=golub.test, y=golubTrain.cl,
         r=821, mtry=55);
      fitted(golub.rnn)

    ## End(Not run)

[Package rknn version 1.2-1 Index]