Preference-coefficients-class: preference_coef

Description Arguments Examples

Description

Class of preference coefficients

Arguments

N

The number of decision makers

p

The number of attributes of each decision makers

q

The number of attributes of each attributes

Examples

1
2
3
4
5
6
7
8
S <- matrix(rnorm(100), nrow = 20, byrow = TRUE)
X <- matrix(rnorm(20), nrow = 4, byrow = TRUE)
choice <- c(rep(1,5), rep(2,5), rep(3,5), rep(4,5))
estimator <- preference_coef(N=20, p=5, q=5)

a <- preference_coef(N=20, p=5, q=5)
a$gen(law="student")
a$gen(heterogeneity=TRUE)

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