View source: R/data_management.R
RprobitB_data | R Documentation |
RprobitB_data
This function constructs an object of class RprobitB_data
.
RprobitB_data( data, choice_data, N, T, J, P_f, P_r, alternatives, ordered, ranked, base, form, re, ASC, effects, standardize, simulated, choice_available, true_parameter, res_var_names )
data |
A list with the choice data.
The list has |
choice_data |
A |
N |
The number (greater or equal 1) of decision makers. |
T |
The number (greater or equal 1) of choice occasions or a vector of choice
occasions of length |
J |
The number (greater or equal 2) of choice alternatives. |
P_f |
The number of covariates connected to a fixed coefficient (can be 0). |
P_r |
The number of covariates connected to a random coefficient (can be 0). |
alternatives |
A character vector with the names of the choice alternatives.
If not specified, the choice set is defined by the observed choices.
If |
ordered |
A boolean, |
ranked |
TBA |
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
|
form |
A
Multiple covariates (of one type) are separated by a In the ordered probit model ( |
re |
A character (vector) of covariates of |
ASC |
A boolean, determining whether the model has ASCs. |
effects |
A data frame with the effect names and booleans indicating whether they are connected to random effects. |
standardize |
A character vector of names of covariates that get standardized.
Covariates of type 1 or 3 have to be addressed by
|
simulated |
A boolean, if |
choice_available |
A boolean, if |
true_parameter |
An object of class |
res_var_names |
A names list of reserved variable names in |
An object of class RprobitB_data
with the arguments of this function
as elements.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.