This function is meant to be run after `sm_regression() when the regression model is univariate. From each of the weighted models, the coefficient standard deviation will be estimated and saved as a column in the output data frame.

add_coef_sd(x)

Arguments

x

`sm_regression` object is `FALSE`

See also

Examples

sm_regression( data = mtcars, method = "lm", formula = mpg ~ am , weighting_var = "hp", newdata = data.frame(hp = c(150, 200)) ) %>% add_ci(n = 10) %>% add_coef_sd()
#> # A tibble: 2 x 4 #> hp .model .model.boot .coef.sd #> <dbl> <list> <list> <dbl> #> 1 150 <S3: lm> <list [10]> 1.23 #> 2 200 <S3: lm> <list [10]> 0.855