You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
warning('The table includes duplicate term names. This can sometimes happen when a model produces "grouped" terms, such as in a multinomial logit or a gamlss model. Consider using the the `group` argument.')
warning('The table includes duplicate term names. This can sometimes happen when a model produces "grouped" terms, such as in a multinomial logit or a gamlss model. Consider using the the `group` argument.')
stop('The `group` argument must be a two-sided formula with two or three components. The formula must include a component named "term", which represents the parameters of the model. The formula must include a component named "model", which represents the different models being summarized. For example,
32
+
33
+
model ~ term
34
+
35
+
displays models as rows and parameter estimates as columns. Inverting the formula would display models as columns and terms as rows.
36
+
37
+
The formula can also include a third, optional, component: a group identifier. In contrast to the "term" and "model" components, the name of the group identifier is not fixed. It must correspond to the name of a column in the data.frame produced by `get_estimates(model)`. For example, applying the `get_estimates` function to a multinomial logit model returns a column called "response", which identifies the parameters that correspond to each value of the responde variable:
38
+
39
+
model + response ~ term')
40
+
}
13
41
14
-
if (!all(c("term", "model") %in% c(lhs, rhs)) ||
15
-
length(unique(c(lhs, rhs))) !=3) {
16
-
stop('The `group` argument must be a two-sided formula with three components: "term", "model", and a group identifier. The group identifier must be the name of a column in the data.frame produced by `get_estimates(model)`. The "term" component must be on the left-hand side of the formula. ')
0 commit comments