PPS.fit()
) with different comparisons between empirical and theoretical functions.## S3 method for class 'PPSfit':
plot(x, which = 1:4, ask = prod(par("mfcol")) < length(which) && dev.interactive(),
ylim, breaks, ...)
PPSfit
Object.hist
help for the details. It is included to prevent non-desired scales on the y-axis.which = 1
).
2. The empirical distribution function of data and the cumulative distribution function of the fitted model (which = 2
).
3. A rank-size plot in log-log scale to check the Pareto or power-law behaviour of data (which = 3
). In the X-axis the log of the observations appears; in the Y-axis, the log of the empirical survival function. If the scatter-plot is around a straight line, then the observations exhibit a power law behaviour. The plot also includes the curve with the theoretical survival function of the model specified in the first argument class PPSfit
: only when nu
is 1, that curve is going to be a straight line.
4. A plot in a double log-log scale to check the adequacy of data to the PPS model (which = 4
). On one hand, the X-axis shows the double log of the observations divided by the scale parameter, while the Y-axis shows the log of minus the log of the empirical survival function. On the other hand, the straight line determined by the linear relation between the survival function and the scaled data in a double log-log scale, in relation to the argument class PPSfit
is added. The proximity of the points in the scatter-plot to that straight line is an evidence in favour of a PPS behaviour of data.PPS.fit
x <- rPPS(50, 1.2, 100, 2.3)
fit <- PPS.fit(x)
par(mfrow=c(2,2))
plot(fit)
Run the code above in your browser using DataLab