Learn R Programming

StatRank (version 0.0.6)

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

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

Generate.RUM.Data(Params, m, n, distribution)

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

Run this code
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")

Run the code above in your browser using DataLab