augment.conditional_moment | R Documentation |
This function produces partial residuals for each predictor, and the estimated conditional means, standard error and confidence limits.
## S3 method for class 'conditional_moment'
augment(x, level = 0.95, ...)
x |
Model object of class "conditional_moment" returned from
|
level |
Confidence level. Default is set to 0.95. |
... |
Additional arguments, not currently used |
A tibble
with information
about data points.
gam
data <- NEON_PRIN_5min_cleaned |>
dplyr::filter(site == "upstream") |>
dplyr::select(Timestamp, turbidity, level, conductance, temperature)
fit_mean <- data |>
conditional_mean(turbidity ~ s(level, k = 8) +
s(conductance, k = 8) + s(temperature, k = 8))
data_inf <- fit_mean |> augment()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.