plotRisks: Plot observed vs. expected risks

Description Usage Arguments Value See Also Examples

Description

Plot observed vs. expected risks

Usage

1
2
plotRisks(standardizedRisks, labeledCenters, labelColors = c(L = "olivedrab1",
  A = "black", H = "red"), labelPch = c(L = 17, A = 20, H = 17), ...)

Arguments

standardizedRisks

object of class 'standardizedRisks' as produced by by the standardizeRisks function

labeledCenters

center labels as produced by the labelCenters function

labelColors

vector of colors (length 3) for the L, A and H label respectively; default value is c(L = "green", A = "black", H = "red")

labelPch

vector of plot characters to be used for the L, A and H label resp.; default value is c(L = 17, A = 20, H = 17)

...

further arguments passed to plot and points

Value

no return value; a plot is written to the current device

See Also

standardizeRisks

Examples

1
2
3
4
5
set.seed(130513)
simulatedData <- simulateData()
standardizedRisks <- with(simulatedData, standardizeRisks(patientCovariates = L, center = center, Y = Y))
labeledCenters <- labelCenters(standardizedRisks = standardizedRisks)
plotRisks(standardizedRisks = standardizedRisks, labeledCenters = labeledCenters)

StatGent/RiskStandard documentation built on May 9, 2019, 1:57 p.m.