Description Usage Arguments See Also Examples
This function is meant to be run after 'sm_regression' when the regression model is univariate. From each of the weighted models, the coefficient will be saved as a column in the output data frame.
1 | add_coef(x)
|
x |
'sm_regression' object |
1 2 3 4 5 6 7 8 | sm_regression(
data = mtcars,
method = "lm",
formula = mpg ~ am ,
weighting_var = "hp",
newdata = data.frame(hp = c(150, 200))
) %>%
add_coef()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.