fitted.asp: Fitted values for semiparametric regression.

View source: R/fitted.asp.r

fitted.aspR 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,

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

AdaptFitOS documentation built on July 21, 2022, 5:10 p.m.