This produces loess
smoothed estimates of y
with Student confidence intervals.
get_smooths(df, x, y, groups = NULL, level = 0.95)
A data.frame
with original x
, smoothed y
, ylow
, and yhigh
, and
optional groups
variables formatted as factor
type.
(data.frame
)
data set containing all analysis variables.
(string
)
x column name.
(string
)
y column name.
(character
or NULL
)
vector with optional grouping variables names.
(proportion
)
level of confidence interval to use (0.95 by default).