plotting.ku: Plotting function for 4-parameter vitality model

Description Usage Arguments Details See Also

Description

This function plots the estimated results from the 4 parameter vitality model. It is used within the function vitality.ku.

Usage

1
2
  plotting.ku(r.final,s.final,k.final,u.final,mlv,time,sfract,x1,x2,Ni,
    pplot,tlab,lplot,cplot,Iplot,gfit)

Arguments

r.final

r estimate

s.final

s estimate

k.final

k estimate

u.final

u 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.

Details

See vitality.ku for further description of function arguments.

See Also

vitality.ku


vitality documentation built on May 2, 2019, 9:07 a.m.