| coef.mfp2 | R Documentation |
mfp2 ModelReturns coefficients from a fitted mfp2() model. This is a method for the
generic stats::coef() function.
## S3 method for class 'mfp2'
coef(object, ...)
object |
A fitted |
... |
Not used. |
A named numeric vector for scalar-response models. For multinomial models, a matrix with one row per non-reference outcome and one column per fitted term; powers are common across rows but coefficients are outcome specific.
mfp2(), summary.mfp2(), predict.mfp2()
data("prostate")
fit <- mfp2(
lpsa ~ fp(age) + fp(cavol) + fp(weight) + svi,
data = prostate,
verbose = FALSE
)
coef(fit)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.