gen_DM_attributes: gen_DM_attributes

Description Arguments Examples

Description

The method of the Experiment class which generates some decision makers' attributes

Arguments

law

The name of the distribution generating the attributes

which

The number of the columns which should be generated

nb_levels

The vector of number of levels of the attributes designated in argument which

group

The group to generate values. By default, every groups are concerned by the generation.

observation

The observation function. Takes a formula as argument.

Examples

1
2
3
4
5
6
7
8
9
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_DM_attributes("discrete_uniform", a=0, b=1, which="X1")
FD$gen_DM_attributes("normal", which=c("X2", "X3"), group=1)
FD$gen_DM_attributes("normal", mu=1, sd=2, which=c("X2","X3"), group=2)
FD$X

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