find_weights | R Documentation |
Returns the name of the variable that describes the weights of a model.
find_weights(x, ...)
x |
A fitted model. |
... |
Currently not used. |
The name of the weighting variable as character vector, or NULL
if no weights were specified.
data(mtcars)
mtcars$weight <- rnorm(nrow(mtcars), 1, .3)
m <- lm(mpg ~ wt + cyl + vs, data = mtcars, weights = weight)
find_weights(m)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.