Returns fitted values for a funreg object.
# S3 method for funreg
fitted(object, type = "response", which.coef = 1, ...)A funreg object
Either response or correlation.
If response, fitted values for the scalar response
variable are returned. If correlation, estimated
individual-level correlation coefficients of the smoothed value of the functional covariate
at various time points with the scalar response variable are returned.
Only required if type is correlation
and there is more than one functional covariate. This specifies
which functional covariate is of interest.
Other optional arguments which may be passed from other methods but ignored by this one.
Returns the fitted values for the responses if type is response,
or the fitted values for the correlations of the
which.coefth functional covariate with the
response, if type is correlation.