simNLCUB: Simulate ratings according to a NLCUB model

Description Usage Arguments Details Value Author(s) References Examples

View source: R/simNLCUB.R

Description

Simulate ratings according to a NLCUB model

Usage

1
simNLCUB(Nsim, paisim, xisim, gsim)

Arguments

Nsim

integer, sample size

paisim

numeric, value of the pai parameter to be used for simulation

xisim

numeric, value of the csi parameter to be used for simulation

gsim

numeric vector, the 'latent' categories assigned to each rating point

Details

It is necessary that the name of the team is contained in the column corresponding to the description

Value

A data frame with N ratings simulated according to a NLCUB model with parameters paisim, csisim, gsim

Author(s)

Paola Zuccolotto, Marica Manisera, Sandri Marco

References

M. Manisera and P. Zuccolotto (2014) Modeling rating data with Nonlinear CUB models. Computational Statistics and Data Analysis, 78, pp. 100–118

M. Manisera and P. Zuccolotto (2014) Nonlinear CUB models: The R code. Statistical Software - Statistica & Applicazioni, Vol. XII, n. 2, pp. 205-223

Examples

1
2
3
4
5
6
7
N <- 1000
pai.sim <- 0.8
xi.sim <- 0.3
g.sim <- c(1,1,2,4,2)
cats <- 5
set.seed(1234567)
dataNLCUB <- simNLCUB(N, pai.sim, xi.sim, g.sim)

sndmrc/NLCUB documentation built on Dec. 23, 2021, 3:28 a.m.