gen_AT_attributes: gen_AT_attributes

Description Arguments Examples

Description

The method of the Experiment class which generates some alternatives' 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

Examples

1
2
3
4
5
6
7
8
DM_att_names <- list("X1", "X2", "X3")
AT_att_names <- list("Z1", "Z2", "Z3")
AT_names <- list("good1", "good2", "good3", "good4")
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_AT_attributes("discrete_uniform", b=2, which=c("Z1","Z2"))
FD$gen_AT_attributes("normal", which=c("Z3"), nb_levels=3)
FD$Z; FD$Z_clustered; FD$Z_category

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