View source: R/RprobitB_data.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
)
## S3 method for class 'RprobitB_data'
print(x, ...)
## S3 method for class 'RprobitB_data'
summary(object, ...)
## S3 method for class 'summary.RprobitB_data'
print(x, ...)
## S3 method for class 'RprobitB_data'
plot(x, by_choice = FALSE, alpha = 1, position = "dodge", ...)
data |
[
|
choice_data |
[ |
N |
[ |
T |
[ |
J |
[ |
P_f |
[ |
P_r |
[ |
alternatives |
[ If |
ordered |
[ |
ranked |
[ |
base |
[ Ignored and set to By default, |
form |
[
Multiple covariates (of one type) are separated by a In the ordered probit model ( |
re |
[ |
ASC |
[ |
effects |
[ |
standardize |
[ Covariates of type 1 or 3 have to be addressed by
If |
simulated |
[ |
choice_available |
[ |
true_parameter |
[ |
res_var_names |
[ |
x |
An object of class |
... |
Currently not used. |
by_choice |
[ |
alpha , position |
Passed to |
An object of class RprobitB_data
.
data <- simulate_choices(
form = choice ~ cost | 0,
N = 100,
T = 10,
J = 2,
alternatives = c("bus", "car"),
true_parameter = list("alpha" = -1)
)
plot(data, by_choice = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.