View source: R/gkwreg-other-methods.R
| formula.gkwreg | R Documentation |
Extracts the model formula from a fitted Generalized Kumaraswamy regression model object. Properly handles formulas with up to 5 parts.
## S3 method for class 'gkwreg'
formula(x, ...)
x |
An object of class |
... |
Currently not used. |
The formula used to fit the model. For multi-part formulas, returns
an object of class "Formula".
Lopes, J. E.
gkwreg, update.gkwreg
data(GasolineYield)
# Simple formula
fit1 <- gkwreg(yield ~ batch + temp, data = GasolineYield, family = "kw")
formula(fit1)
# Two-part formula
fit2 <- gkwreg(yield ~ temp | batch, data = GasolineYield, family = "kw")
formula(fit2)
# Five-part formula
fit3 <- gkwreg(yield ~ temp | batch | temp | 1 | 1,
data = GasolineYield, family = "gkw"
)
formula(fit3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.