plot.mdr: Plotting the results of an MDR model

Description Usage Arguments Details Note Author(s) See Also Examples

View source: R/mdr.r

Description

a method for class 'mdr' to plot case/control counts for each factor combination of a previously fit MDR model

Usage

1
2
## S3 method for class 'mdr'
plot(x, data, main="", xlab="", ylab="Count", table=FALSE,...)

Arguments

x

an object of class 'mdr', a result of a call to either mdr.cv or mdr.3WS

data

data set used to fit object

main

title for the plot; default is no title

xlab

Label for the x-axis; default is no label

ylab

Label for the y-axis; default is "Count"

table

logical for whether a summary table of case/control counts should be produced; default is FALSE

...

additional arguments

Details

A call to plot produces a trellis-style bar chart of case and control counts for each factor combination from object. Cases are plotted in black and controls are plotted in white. Factor combinations considered 'high-risk' are shaded gray, as seen in the legend.

Note

Requires the package lattice. For models of size 3 or greater, stretch the plot window for better viewing.

Author(s)

Stacey Winham

See Also

mdr.cv, mdr.3WS, predict.mdr, summary.mdr

Examples

1
2
3
4
5
6
7
#load data
data(mdr1)

#fit mdr model to a subset of the sample data
fit<-mdr.cv(data=mdr1[,1:11], K=2, cv=5) 

plot(fit, data=mdr1)

MDR documentation built on May 29, 2017, 7:05 p.m.