methods {kin.cohort}R Documentation

methods for print and plot

Description

Functions to print a formatted output and produce plots

Usage

## S3 method for class 'kin.cohort'
print(x, descriptive = TRUE, cumrisk = TRUE, hazard = FALSE, survival = FALSE, 
        logrank = TRUE, HR = TRUE, digits = 5, ...)

## S3 method for class 'kin.cohort.boot'
print(x, cumrisk = TRUE, hazard = FALSE, HR = TRUE, conf = 0.95,
        digits = 5, show = TRUE, logrank = TRUE, ...)

## S3 method for class 'kin.cohort'
plot(x, what = c("cr", "hr", "crr"), min.age = min(x$knots), 
      max.age = max(x$knots), max.y, type, add=FALSE, color, line,  ...)

## S3 method for class 'kin.cohort.boot'
plot(x, conf = 0.95, what = c("cr", "hr", "crr"), min.age = min(x$knots), 
      max.age = max(x$knots), age.start = 0, start.ref, max.y, type,
      median = FALSE, add = FALSE, color, line, ...)

Arguments

x

object to be printed or plotted

descriptive

print table with number of events and person-years

cumrisk

print cumulative risk

hazard

print hazard

survival

print survival

HR

print harard ratios

logrank

print logrank p value

digits

digits for rounding

show

do not print

conf

coverage for confidence intervals

what

type of plot desired: cumulative risk ("cr"), hazard ratio ("hr", for marginal method only), cumulative risk ratio ("crr", for moments method only)

min.age

Minimal age for plots

max.age

Maximal age for plots

age.start

initial age value (x) for plots

start.ref

initial risk value (y) for plots

max.y

Max value for y axis

type

type of line in plots

add

If TRUE, then lines are added to current plot. Useful to compare analyses.

color

change line colors using a vector of values

line

change line width using a vector of values

median

plot median of bootstrap samples instead of point estimates

...

additional arguments for print or plot

Details

Specific output and plot types can be selected with arguments


[Package kin.cohort version 0.7 Index]