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 |
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 |
tlab |
Character, label for time axis. Defaults to "days". |
gfit |
Provides a Pearson C type test for goodness of fit. Default is |
rc.data |
Boolean, right-censored data? |
Details
See vitality.k
for further description of function arguments.