Returns the coefficients of a fitted object of class serp
.
# S3 method for serp
coef(object, ...)
# S3 method for serp
coefficients(object, ...)
Arguments
- object
An object of class serp
.
- ...
additional arguments.
Value
A vector of model coefficients.
Examples
library(serp)
m <- serp(rating ~ temp + contact, slope = "parallel", link = "loglog",
data = wine)
coef(m)
#> (Intercept):1 (Intercept):2 (Intercept):3 (Intercept):4 tempwarm
#> -0.3024422 1.1786053 2.6062374 3.8148252 -1.5330191
#> contactyes
#> -0.9056460