Description Usage Arguments Details Value See Also Examples
weighted_line
fits a robust line and allows weights.
1 | weighted_line(x, y = NULL, w, na.rm = FALSE, iter = 1)
|
x |
a numeric vector (explanatory variable) |
y |
a numeric vector (response variable) |
w |
a numeric vector of weights |
na.rm |
a logical value indicating whether rows with |
iter |
number of iterations for enhancing the slope |
Uses different quantiles for splitting the sample than line()
.
Is based on weighted_median()
.
intercept and slope of the fitted line
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.