Learn R Programming

vows (version 0.3.1)

extract.fd: Extract curve estimates to be clustered

Description

Given a massively parallel smoothing object created by semipar.mp, this function extracts an object of class "fd" representing the curves that one wishes to cluster using funkmeans.

Usage

extract.fd(obj, term = 1, intercept = (term == 1))

Arguments

obj
object created by semipar.mp.
term
which smooth term to extract (useful if the fitted model includes more than one term).
intercept
logical; if TRUE, intercept will be added to all coefficients. For simple nonparametric regression this should be done to recover the fitted values.

Value

  • an object of class "fd" representing the fitted curves, which can be clustered by funkmeans.

See Also

semipar.mp, funkmeans

Examples

Run this code
# see example for plot.funkmeans

Run the code above in your browser using DataLab