Returns the number of parameters from a model.
Examples
model <- lm(mpg ~ wt + cyl + hp + disp + gear + drat, data = mtcars)
ols_count_parameters(model)
#> [1] 7
Returns the number of parameters from a model.
model <- lm(mpg ~ wt + cyl + hp + disp + gear + drat, data = mtcars)
ols_count_parameters(model)
#> [1] 7