Learn R Programming

morseTKTD (version 0.1.3)

PriorPosterior: Return Prior and Posterior density of parameters of SurvFit object

Description

This is the generic pp S3 method for the survFitTT class. It plots the predicted values with 95 \ values for SurvFit objects.

The coordinates of black points are the observed values of the number of survivors (pooled replicates) for a given concentration (\(X\)-axis) and the corresponding predicted values (\(Y\)-axis). 95\ value, colored in green if this interval contains the observed value and in red otherwise. The bisecting line (y = x) is added to the plot in order to see if each prediction interval contains each observed value. As replicates are shifted on the x-axis, this line is represented by steps.

Usage

priorPosterior(fit, ...)

# S3 method for SurvFit priorPosterior(fit, ...)

Value

a plot of class ggplot

Arguments

fit

An object of class SurvFit

...

Further arguments to be passed to generic methods