% Generated by roxygen2: do not edit by hand % Please edit documentation in R/stats-smooth.spline.R \name{augment.smooth.spline} \alias{augment.smooth.spline} \alias{smooth.spline_tidiers} \title{Tidy a(n) smooth.spline object} \usage{ \method{augment}{smooth.spline}(x, data = x$data, ...) } \arguments{ \item{x}{A \code{smooth.spline} object returned from \code{\link[stats:smooth.spline]{stats::smooth.spline()}}.} \item{data}{A \link[base:data.frame]{base::data.frame} or \code{\link[tibble:tibble]{tibble::tibble()}} containing the original data that was used to produce the object \code{x}. Defaults to \code{stats::model.frame(x)} so that \code{augment(my_fit)} returns the augmented original data. \strong{Do not} pass new data to the \code{data} argument. Augment will report information such as influence and cooks distance for data passed to the \code{data} argument. These measures are only defined for the original training data.} \item{...}{Additional arguments. Not used. Needed to match generic signature only. \strong{Cautionary note:} Misspelled arguments will be absorbed in \code{...}, where they will be ignored. If the misspelled argument has a default value, the default value will be used. For example, if you pass \code{conf.lvel = 0.9}, all computation will proceed using \code{conf.level = 0.95}. Two exceptions here are: \itemize{ \item \code{tidy()} methods will warn when supplied an \code{exponentiate} argument if it will be ignored. \item \code{augment()} methods will warn when supplied a \code{newdata} argument if it will be ignored. }} } \description{ Tidy summarizes information about the components of a model. A model component might be a single term in a regression, a single hypothesis, a cluster, or a class. Exactly what tidy considers to be a model component varies across models but is usually self-evident. If a model has several distinct types of components, you will need to specify which components to return. } \examples{ \dontshow{if (FALSE) withAutoprint(\{ # examplesIf} # fit model spl <- smooth.spline(mtcars$wt, mtcars$mpg, df = 4) # summarize model fit with tidiers augment(spl, mtcars) # calls original columns x and y augment(spl) library(ggplot2) ggplot(augment(spl, mtcars), aes(wt, mpg)) + geom_point() + geom_line(aes(y = .fitted)) \dontshow{\}) # examplesIf} } \seealso{ \code{\link[=augment]{augment()}}, \code{\link[stats:smooth.spline]{stats::smooth.spline()}}, \code{\link[stats:predict.smooth.spline]{stats::predict.smooth.spline()}} Other smoothing spline tidiers: \code{\link{glance.smooth.spline}()} } \concept{smoothing spline tidiers} \value{ A \code{\link[tibble:tibble]{tibble::tibble()}} with columns: \item{.fitted}{Fitted or predicted value.} \item{.resid}{The difference between observed and fitted values.} }