nested_partial_residuals | R Documentation |
Computes partial residuals for smooth terms, formats them in long/tidy
format, then nests the partial_residual
column such that the result
is a nested data frame with one row per smooth.
nested_partial_residuals(object, terms = NULL, data = NULL)
object |
a fitted GAM model |
terms |
a vector of terms to include partial residuals for. Passed to
argument |
data |
optional data frame |
A nested tibble (data frame) with one row per smooth term. Contains two columns:
smooth
- a label indicating the smooth term
partial_residual
- a list column containing a tibble (data frame) with
1 column partial_residual
containing the requested partial residuals
for the indicated smooth.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.