Learn R Programming

gss (version 2.2-8)

predict9.gssanova: Predicting from Smoothing Spline ANOVA Fits with Non-Gaussian Responses

Description

Evaluate smoothing spline ANOVA fits with non-Gaussian responses at arbitrary points, with results on the response scale.

Usage

# S3 method for gssanova
predict9(object, newdata, ci=FALSE, level=.95, nu=NULL, ...)

Value

For ci=FALSE, predict9.gssanova returns a vector of the evaluated fit,

For ci=TRUE, predict9.gssanova returns a list of three elements.

fit

Vector of evaluated fit on response scale.

lcl

Vector of lower confidence limit on response scale.

ucl

Vector of upper confidence limit on response scale.

For family="polr", predict9.gssanova returns a matrix of probabilities with each row adding up to 1.

Arguments

object

Object of class inheriting from "gssanova".

newdata

Data frame or model frame in which to predict.

ci

Flag indicating if Bayesian confidence intervals are required. Ignored for family="polr".

level

Confidence level. Ignored when ci=FALSE.

nu

Sizes for "nbinomial" fits with known sizes. Ignored otherwise.

...

Ignored.

References

Gu, C. (2013), Smoothing Spline ANOVA Models (2nd Ed). New York: Springer-Verlag.

See Also

Fitting functions gssanova, gssanova1 and methods predict.ssanova, summary.gssanova, project.gssanova, fitted.gssanova.