View source: R/data_management.R
overview_effects | R Documentation |
This function gives an overview of the effect names, whether the covariate is alternative-specific, whether the coefficient is alternative-specific, and whether it is a random effect.
overview_effects(
form,
re = NULL,
alternatives,
base = tail(alternatives, 1),
ordered = FALSE
)
form |
A
Multiple covariates (of one type) are separated by a In the ordered probit model ( |
re |
A character (vector) of covariates of |
alternatives |
A character vector with the names of the choice alternatives.
If not specified, the choice set is defined by the observed choices.
If |
base |
A character, the name of the base alternative for covariates that are not
alternative specific (i.e. type 2 covariates and ASCs). Ignored and set to
|
ordered |
A boolean, |
A data frame, each row is a effect, columns are the effect name
"effect"
, and booleans whether the covariate is alternative-specific
"as_value"
, whether the coefficient is alternative-specific
"as_coef"
, and whether it is a random effect "random"
.
check_form()
for checking the model formula specification.
overview_effects(
form = choice ~ price + time + comfort + change | 1,
re = c("price", "time"),
alternatives = c("A", "B"),
base = "A"
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.