predict.fuzzylm {fuzzyreg}R Documentation

Predict Method for Fuzzy Linear Regression

Description

Predicts the central tendency and spreads from a fuzzy linear regression model.

Usage

## S3 method for class 'fuzzylm'
predict(object, newdata, ...)

Arguments

object

a fuzzylm object.

newdata

an optional data frame in which to look for variables with which to predict. If omitted, the fitted values are used.

...

further arguments passed to or from other methods.

Value

fuzzylm object with newdata replacing the element x and predictions in triangular fuzzy number format representing the central values and left and right spreads replacing the element y.

Examples

data(fuzzydat)
f <- fuzzylm(y ~ x, data = fuzzydat$lee)
predict(f)

[Package fuzzyreg version 0.6.2 Index]