plotting.k {vitality}R Documentation

Plotting function for 3-parameter vitality model

Description

This function plots the estimated results from the 3 parameter vitality model. It is used within the function vitality.k.

Usage

  plotting.k(r.final,s.final,k.final,mlv,time,sfract,x1,x2,Ni,
  pplot,tlab,lplot,cplot,Iplot,gfit,rc.data)

Arguments

r.final

r estimate

s.final

s estimate

k.final

k estimate

mlv

TODO mlv

time

time vector giving the ages at which calculate the estimated value

sfract

observed survival fraction

x1

Time 1

x2

Time 2

Ni

Initial population

pplot

Boolean. Plot cumulative survival fraction?

Iplot

Boolean. Plot incremental survival?

lplot

Boolean. Plot likelihood functions? Provides likelihood function plotting. Defaults to FALSE. Note: these plots are not "likelihood profiles" in that while one parameter is varied, the others are held fixed, rather than re-optimized. (must also have pplot=T.)

cplot

Boolean. Plot likelihood contour plot? Provides a likelihood contour plot for a range of r and s values (can be slow so default is FALSE). Must also have lplot=T and pplot=T to get contour plots.

tlab

Character, label for time axis. Defaults to "days".

gfit

Provides a Pearson C type test for goodness of fit. Default is FALSE. Must provide the initial study population to compute goodness of fit.

rc.data

Boolean, right-censored data?

Details

See vitality.k for further description of function arguments.

See Also

vitality.k


[Package vitality version 1.3 Index]