Learn R Programming

cowbell (version 0.1.0)

predict.cowbell: Performs a prediction on the cowbell model that has been generated.

Description

Implementation of the predict generic. The provided data has to have the exact column names that were used when the cowbell analysis was done. If no data is provided the original data is used.

Usage

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

Arguments

object
The data obtained by function generateCowbell.
newdata
The data set to perform the prediction on. If omitted the original data is used.
...
Just for compatibility purposes.

Value

The vector with the predicted data.

Examples

Run this code
# Run a simplified anaylsis with 10 iterations only (to save time.)
concept<-generateCowbellConcept(Fun ~ Fluency * Absorption, 1, 9, 1, 7, 1, 7)
data(allFun)
test<-generateCowbell(concept, allFun, 10)
predict(test)

Run the code above in your browser using DataLab