Debian Codegraph @

man/glance.smooth.spline.Rd

raw
1 % Generated by roxygen2: do not edit by hand
2 % Please edit documentation in R/stats-smooth.spline.R
3 \name{glance.smooth.spline}
4 \alias{glance.smooth.spline}
5 \title{Tidy a(n) smooth.spine object}
6 \usage{
7 \method{glance}{smooth.spline}(x, ...)
8 }
9 \arguments{
10 \item{x}{A \code{smooth.spline} object returned from \code{\link[stats:smooth.spline]{stats::smooth.spline()}}.}
11
12 \item{...}{Additional arguments. Not used. Needed to match generic
13 signature only. \strong{Cautionary note:} Misspelled arguments will be
14 absorbed in \code{...}, where they will be ignored. If the misspelled
15 argument has a default value, the default value will be used.
16 For example, if you pass \code{conf.lvel = 0.9}, all computation will
17 proceed using \code{conf.level = 0.95}. Two exceptions here are:
18 \itemize{
19 \item \code{tidy()} methods will warn when supplied an \code{exponentiate} argument if
20 it will be ignored.
21 \item \code{augment()} methods will warn when supplied a \code{newdata} argument if it
22 will be ignored.
23 }}
24 }
25 \description{
26 Tidy summarizes information about the components of a model.
27 A model component might be a single term in a regression, a single
28 hypothesis, a cluster, or a class. Exactly what tidy considers to be a
29 model component varies across models but is usually self-evident.
30 If a model has several distinct types of components, you will need to
31 specify which components to return.
32 }
33 \examples{
34 \dontshow{if (FALSE) withAutoprint(\{ # examplesIf}
35
36 # fit model
37 spl <- smooth.spline(mtcars$wt, mtcars$mpg, df = 4)
38
39 # summarize model fit with tidiers
40 augment(spl, mtcars)
41
42 # calls original columns x and y
43 augment(spl)
44
45 library(ggplot2)
46 ggplot(augment(spl, mtcars), aes(wt, mpg)) +
47 geom_point() +
48 geom_line(aes(y = .fitted))
49 \dontshow{\}) # examplesIf}
50 }
51 \seealso{
52 \code{\link[=augment]{augment()}}, \code{\link[stats:smooth.spline]{stats::smooth.spline()}}
53
54 Other smoothing spline tidiers:
55 \code{\link{augment.smooth.spline}()}
56 }
57 \concept{smoothing spline tidiers}
58 \value{
59 A \code{\link[tibble:tibble]{tibble::tibble()}} with exactly one row and columns:
60 \item{crit}{Minimized criterion}
61 \item{cv.crit}{Cross-validation score}
62 \item{df}{Degrees of freedom used by the model.}
63 \item{lambda}{Choice of lambda corresponding to `spar`.}
64 \item{nobs}{Number of observations used.}
65 \item{pen.crit}{Penalized criterion.}
66 \item{spar}{Smoothing parameter.}
67
68 }