Learn R Programming

vitality (version 1.3)

plotting.6p: Plotting function for 2-process 6-parameter vitality model

Description

This function plots the estimated results from the 6 parameter vitality model. It is used within the function vitality.6p.

Usage

plotting.6p(r.final, s.final, lambda.final, beta.final, 
    gamma.final, alpha.final, mlv, time, sfract, x1, x2, Ni, pplot, Iplot, Mplot,
    tlab, rc.data)

Arguments

r.final

r estimate

s.final

s estimate

lambda.final

lambda estimate

beta.final

beta estimate

gamma.final

gamma estimate

alpha.final

alpha 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?

Mplot

Boolean. Plot mortality rate? Note: plotted mortality data is derived from survival data and is approximate

tlab

Character, label for time axis

rc.data

Boolean, right-censored data?

Details

See vitality.6p for further description of function arguments.

Only one of Iplot or Mplot should be set to TRUE at once.

See Also

vitality.6p, mu.vd.6p, mu.vd1.6p, mu.vd2.6p, mu.vd3.6p, mu.vd4.6p