Learn R Programming

nda (version 0.3.0)

predict.nda: Predict NDA Scores

Description

Applies training feature standardization, indicator weights, retained centralities, latent-score scaling, and rotation to new rows.

Usage

# S3 method for nda
predict(object, newdata, ...)

Value

A matrix with one predicted score column per latent variable. If newdata is NULL, training scores are returned.

Arguments

object

An nda object fitted to row-level data.

newdata

Numeric data containing every original training indicator.

...

Reserved for method compatibility.

Examples

Run this code
fit <- ndr(swiss); predict(fit, swiss[1:4, ])

Run the code above in your browser using DataLab