gen_preference_coefficients: gen_preference_coefficients

Description Arguments Examples

Description

The method of the Experiment class which generates some preference coefficients' attributes

Arguments

which

The number of the columns which should be generated

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
DM_att_names <- list("X1", "X2", "X3")
AT_att_names <- list("Z1", "Z2", "Z3")
AT_names <- list("good1", "good2")
groups <- c(10, 20)
FD <- Experiment(DM_att_names=DM_att_names, AT_att_names=AT_att_names, AT_names=AT_names,groups=groups)
FD$gen_preference_coefficients("student", heterogeneity=TRUE, location=-100,  scale=1, df=4, which=c(1:4), group=1)
FD$gen_preference_coefficients("student", heterogeneity=TRUE, location=100,  scale=1, df=4, which=c(1:4), group=2)
FD$gen_preference_coefficients("normal", heterogeneity=TRUE, mu=0, sd=2, which=5)
FD$gen_preference_coefficients("discrete_uniform", heterogeneity=TRUE, a=1, b=5, which=6)
FD$beta

AntoineDubois/RUMdesignSimulator documentation built on Dec. 17, 2021, 8:53 a.m.