Learn R Programming

AdaptFitOS (version 0.69)

fitted.asp: Fitted values for semiparametric regression.

Description

Extracts fitted values from a semiparametric regression fit object.

Usage

# S3 method for asp
fitted(object,...)

Value

The vector of fitted.

Arguments

object

a fitted asp object as produced by asp2().

...

other possible arguments.

Details

Extracts fitted from a semiparametric regression fit object. The fitted are defined to be the set of values obtained when the predictor variable data are substituted into the fitted regression model.

See Also

plot.asp, predict.asp, summary.asp, residuals.asp,

Examples

Run this code
data(fossil,package="SemiPar")
attach(fossil)
fit <- asp2(strontium.ratio~f(age))
plot(fit, bands=FALSE)
points(age,fitted(fit)-fit$coef[1],col="red")

Run the code above in your browser using DataLab