NLCUBplot: Plot observed relative frequencies nad fitted probabilities...

Description Usage Arguments Details Value Author(s) References Examples

View source: R/NLCUBplot.R

Description

Plot observed relative frequencies nad fitted probabilities for different ratings

Usage

1
NLCUBplot(rp1, paip1, xip1, gp1, freq.table.p1 = TRUE)

Arguments

rp1

numeric observed ratings (either the vector of microdata or the vector of the m observed frequencies (frequency table)

paip1

numeric, value of the pai parameter

xip1

numeric, value of the csi parameter

gp1

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

freq.table.p1

logical, if TRUE, the data in r is the vector of the m observed frequencies (frequency table)

Details

(Details here)

Value

A ggplot object

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
N <- 1000
pai.sim <- 0.8
xi.sim <- 0.3
g.sim <- c(1,1,2,4,2)
cats <- 5
set.seed(1234567)

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