fitted.asp {AdaptFitOS}R Documentation

Fitted values for semiparametric regression.

Description

Extracts fitted values from a semiparametric regression fit object.

Usage

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

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.

Value

The vector of fitted.

See Also

plot.asp, predict.asp, summary.asp, residuals.asp, asp (package AdaptFit)

Examples

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")

[Package AdaptFitOS version 0.67 Index]