plot.NLCUB: Plots a NLCUB model from a 'NLCUB' object

Description Usage Arguments Details Value Author(s) References Examples

View source: R/plot.NLCUB.R

Description

Plots a NLCUB model from a 'NLCUB' object

Usage

1
2
## S3 method for class 'NLCUB'
plot(x, log.scale = TRUE, freq.table.p1 = TRUE, ...)

Arguments

x

an object of class NLCUB

log.scale

logical, if TRUE, the logarithmic scale is used; if FALSE, the linear scale is used

freq.table.p1

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

...

other graphical parameters.

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
 7
 8
 9
10
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)
datitab <- table(dataNLCUB)
est <- NLCUB(datitab, g=g.sim, freq.table=TRUE)
plot(est)

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