Description Usage Arguments Value Author(s) Examples
Update method for cumulative link models fitted with clm2
.
This makes it possible to use e.g.
update(obj, location = ~ . - var1, scale = ~ . + var2)
1 2 3 4 5 6 |
object |
a |
formula. |
not used—unfortunately this argument is part of the default method. |
location |
an optional new formula for the location; see
|
scale |
an optional new formula for the scale; see
|
nominal |
an optional new formula for nominal effects; see
|
... |
additional arguments to the call, or arguments with changed values. |
evaluate |
if true evaluate the new call else return the call. |
If evaluate = TRUE
the fitted object is returned,
otherwise the updated call.
Rune Haubo B Christensen
1 2 3 4 5 6 7 8 9 10 | options(contrasts = c("contr.treatment", "contr.poly"))
m1 <- clm2(SURENESS ~ PROD, scale = ~PROD, data = soup,
link = "logistic")
m2 <- update(m1, link = "probit")
m3 <- update(m1, link = "cloglog")
m4 <- update(m1, link = "loglog")
anova(m1, update(m1, scale = ~.-PROD))
mT1 <- update(m1, threshold = "symmetric")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.