Learn R Programming

fuzzyreg (version 0.6.2)

predict.fuzzylm: Predict Method for Fuzzy Linear Regression

Description

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

Usage

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

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.

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.

Examples

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

Run the code above in your browser using DataLab