Learn R Programming

StatRank (version 0.0.6)

Generate.NPRUM.Data: Generate data from an NPRUM model

Description

This is useful for performing inference tasks for NPRUM

Usage

Generate.NPRUM.Data(Estimate, n, bw = 0.1)

Arguments

Estimate
fitted NPRUM object
n
number of agents that we want in our sample
bw
smoothing parameter to use when sampling data

Examples

Run this code
Data.Tiny <- matrix(c(1, 2, 3, 3, 2, 1, 1, 2, 3), ncol = 3, byrow = TRUE)
Estimate <- Estimation.RUM.Nonparametric(Data.Tiny, m = 3, iter = 3)
Generate.NPRUM.Data(Estimate, 3, bw = 0.1)

Run the code above in your browser using DataLab