Debian Codegraph @

man/augment_columns.Rd

raw
1 % Generated by roxygen2: do not edit by hand
2 % Please edit documentation in R/utilities.R
3 \name{augment_columns}
4 \alias{augment_columns}
5 \title{Add fitted values, residuals, and other common outputs to
6 an augment call}
7 \usage{
8 augment_columns(
9 x,
10 data,
11 newdata = NULL,
12 type,
13 type.predict = type,
14 type.residuals = type,
15 se.fit = TRUE,
16 ...
17 )
18 }
19 \arguments{
20 \item{x}{a model}
21
22 \item{data}{original data onto which columns should be added}
23
24 \item{newdata}{new data to predict on, optional}
25
26 \item{type}{Type of prediction and residuals to compute}
27
28 \item{type.predict}{Type of prediction to compute; by default
29 same as \code{type}}
30
31 \item{type.residuals}{Type of residuals to compute; by default
32 same as \code{type}}
33
34 \item{se.fit}{Value to pass to predict's \code{se.fit}, or NULL for
35 no value. Ignored for model types that do not accept an \code{se.fit}
36 argument}
37
38 \item{...}{extra arguments (not used)}
39 }
40 \description{
41 \code{augment_columns} is intended for use in the internals of \code{augment} methods
42 only and is exported for developers extending the broom package. Please
43 instead use \code{\link[=augment]{augment()}} to appropriately make use of the functionality
44 in \code{augment_columns()}.
45 }
46 \details{
47 Note that, in the case that a \code{residuals()} or \code{influence()} generic is
48 not implemented for the supplied model \code{x}, the function will fail quietly.
49 }