plot.fitCTP: Plot of observed and theoretical frequencies for a CTP fit

View source: R/fitctp.R

plot.fitCTPR Documentation

Plot of observed and theoretical frequencies for a CTP fit

Description

Plot of observed and theoretical frequencies for a CTP fit

Usage

## S3 method for class 'fitCTP'
plot(x, plty = "FREQ", maxValue = NULL, ...)

Arguments

x

An object of class 'fitCTP'

plty

Plot type to be shown. Default is "FREQ" which shows the observed and theoretical frequencies for each value of the variable; "CDF" and "PP" are also available for plotting the empirical and theoretical cumulative distribution functions or the theoretical cumulative probabilities against the empirical cumulative probabilities, respectively.

maxValue

maxValue you want to appear in the plot

...

Additional parameters.

Examples

set.seed(123)
x <- rctp(500, -0.5, 1, 2)
fit <- fitctp(x)
plot(fit)
plot(fit, plty = "CDF")
plot(fit, plty = "PP")


ujaen-statistics/cpd documentation built on Oct. 2, 2023, 10:43 a.m.