Learn R Programming

StatRank (version 0.0.6)

Visualization.RUMplots: RUMplot visualization

Description

Creates marginal random utility density plots for each alternatives given an Estimation object for a PL or Nonparameteric model

Usage

Visualization.RUMplots(RUM = "Exponential", Estimate = NA, min = -5, max = 5, ncol = 5, names = NA)

Arguments

RUM
choice of Exponential, Gumbel, or Nonparametric
Estimate
fitted RUM object
min
minimum x value to display
max
maximum x value to display
ncol
number of columns in the visualization
names
names of alternatives

Examples

Run this code
library(ggplot2)
library(gridExtra)
Data.Tiny <- matrix(c(1, 2, 3, 3, 2, 1, 1, 2, 3), ncol = 3, byrow = TRUE)
Estimate <- Estimation.PL.GMM(Breaking(Data.Tiny, method = "full"), m = 3)
Visualization.RUMplots("Exponential", Estimate, names = 1:3)

Run the code above in your browser using DataLab