| printEffects {CGEN} | R Documentation |
Prints an object returned from snp.logistic or snp.matched
printEffects(obj, op=NULL)
obj |
The return object from |
op |
Options list with names "digits" and "method" (see details). The default is NULL. |
Below are the names for the options list op. All names have default values
if they are not specified.
digits Integer: Number of significant digits to print. The default is 2.
method Vector of values from "UML", "CML", "EB" or "CCL", "HCL", "CLR". The default is NULL.
Returns NULL
# Use the ovarian cancer data
data(Xdata, package="CGEN")
# Fit using a stratification variable
fit <- snp.logistic(Xdata, "case.control", "BRCA.status",
main.vars=c("oral.years", "n.children"),
int.vars=c("oral.years", "n.children"),
strata.var="ethnic.group")
# Compute the effects
effects <- snp.effects(fit, "oral.years", var.levels=c(0, 2, 3))
printEffects(effects)