rggplot2# What does `se` stand for in geom_smooth(..., se = FALSE)?

From documentation:

seDisplay confidence interval around smooth (TRUE by default, see level to control.)

Source: https://ggplot2.tidyverse.org/reference/geom_smooth.html

So where did "s" and "e" come from???

Solution

This is admittedly a slightly oblique name, but as @Guillaume says, it refers to the standard error of the estimated response. Internally, `ggplot`

is typically calling the `predict()`

method of the smoothed object with `se.fit = TRUE`

; e.g. you can see the code here. It then computes the confidence interval based on a set number of standard-error intervals around the predicted value (for the typical 95% CI, this is `predicted ± 1.96 * se`

).

The *Details* section of `geom_smooth`

says:

Calculation is performed by the (currently undocumented) ‘predictdf()’ generic and its methods. For most methods the standard error bounds are computed using the ‘predict()’ method - the exceptions are ‘loess()’, which uses a t-based approximation, and ‘glm()’, where the normal confidence interval is constructed on the link scale and then back-transformed to the response scale.

- Making an SEIR model parameter to depend on incidence of a compartment at each time step using ode function
- Applying strsplit() on data.frame results in unexpected output
- How to use pivot_longer to combine multiple columns in R with dplyr
- How to access and read files on an external hard drive using R and RStudio (Mac)?
- Subsetting netcdf files with multiple variables by time range
- Using enter key with action button in R Shiny
- How do I change the default library path for R packages
- Change background color between day and night in R base
- Balance of deposit account using tidyverse / mutate
- How to color in flextable with an as_grouped_data format with equal cells with same values
- Error in x[[1]] : subscript out of bounds
- How to configure chatbot using the shinyChatR package
- Remove rows with dplyr based on two conditions of two variables in R
- Calculate CDF of Weibull distribution in R
- How to delete all strings except some specific name in R?
- Assign date order (mm/dd/yyyy) to a date time character in R
- How to use conditional panel in R Shiny to only hide and show user inputs while still allowing underlying calculations to run?
- What are the ways for the faster processing of raster stack
- Regression with Panel Data (Wide)?
- R -How to pass value in mongolite Query
- Saving output from a function containing loop and ifelse
- A simple pivot_longer on 3D array in R?
- How to add a subscript in R
- MCMC and binary logistic regressions with zero events
- Summary statistics table in R Markdown
- calculate color scale range independently for each facet
- Remove variable label when using tbl_strata() and tbl_summary() from gtsummary package
- Adding superscript and minus signs to data and axis labels in ggplot2
- R equivalent of MATLAB's pascal(n, 1) different column signs
- Scraping federal note yield table from the treasury website