add_coef_sd: Estimate the SD for model coefficients

Description Usage Arguments See Also Examples

Description

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.

Usage

1

Arguments

x

'sm_regression' object is 'FALSE'

See Also

sm_regression

Examples

1
2
3
4
5
6
7
8
9
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()

ddsjoberg/sjosmooth documentation built on May 14, 2019, 5:16 p.m.