plotIT: Plot of infection times of the EA algorithm

View source: R/plotIT.R

plotITR Documentation

Plot of infection times of the EA algorithm

Description

The (weighted) cdf of infection times is plotted. The infection times jumps of the cdf are shown by the points with the same infection times stacked vertically and respecting the weights.

Usage

plotIT(infection.time, weights, cutpoint)

Arguments

infection.time

vector of infection.times of the observations

weights

vector of (survey) weights of the observations

cutpoint

a cutpoint to for declaring outliers

Details

The infection times of EAdet are the main input. In addition the weights may be needed. The default cutpoint from EAdet may be used for the cutpoint. Points that are never infected have a missing infection time. These missing infection times are (temporarily) imputed by 1.2 times the maximum infection time to show them on the plot marked with an x.

Author(s)

Beat Hulliger

Examples

it <- c(rep(NA, 3), rep(1:7, times=c(1, 4, 10, 8, 5, 3, 2)))
wt <- rep(c(1,2,5), times=12)
plotIT(it, wt, 6)

modi documentation built on March 31, 2023, 8:35 p.m.