Generate.RUM.Data: Generate observation of ranks given parameters

Description Usage Arguments Value Examples

View source: R/RandomUtilityModels.R

Description

Given a list of parameters (generated via the Generate RUM Parameters function), generate random utilities from these models and then return their ranks

Usage

1

Arguments

Params

inference object from an Estimation function, or parameters object from a generate function

m

number of alternatives

n

number of agents

distribution

can be either 'normal' or 'exponential'

Value

a matrix of observed rankings

Examples

1
2
3
4
Params = Generate.RUM.Parameters(10, "normal")
Generate.RUM.Data(Params,m=10,n=5,"normal")
Params = Generate.RUM.Parameters(10, "exponential")
Generate.RUM.Data(Params,m=10,n=5,"exponential")

StatRank documentation built on May 1, 2019, 8:22 p.m.