MCPAN (version 1.1-21)

print.multinomORci: Print out put of multinomORci

Description

For output of function multinomORci: print ot confidence intervals or coerce out put to a data.frame.

Usage

# S3 method for multinomORci
print(x, exp = TRUE, ...)
# S3 method for multinomORci
as.data.frame(x, row.names = NULL, optional = FALSE, exp = TRUE, ...)

Arguments

x

an object of class multinomORci

exp

logical; if exp=TRUE interval limits are exp-transformed to yield limits on the sclae of odds-ratios; if exp=FALSE interval limits are printed/Returned on the logit scale

row.names

see as.data.frame

optional

see as.data.frame

arguments to be passed to print, or as.data.frame

Examples

Run this code
# NOT RUN {
# fakle data: 3 categories (A,B,C) in 4 tretament groups c(co,d1,d2,d3)
dm <- rbind(
"co" = c(15,5,5),
"d1" = c(10,10,5),
"d2" = c(5,10,10),
"d3" = c(5,5, 15))
colnames(dm)<- c("A","B","C")

dm

#  define and name odds between categories
cmodds <- rbind(
"B/A"=c(-1,1,0),
"C/A"=c(-1,0,1))

#  define and name comparsions between groups
cmtrt <- rbind(
"d1/co"=c(-1,1,0,0),
"d2/co"=c(-1,0,1,0),
"d3/co"=c(-1,0,1,0))

TEST <- multinomORci(Ymat=dm, cmcat=cmodds, cmgroup=cmtrt, cimethod="DP", BSIM=1000, prior=1)
TEST
print(TEST, exp=FALSE)
as.data.frame(TEST)

# }

Run the code above in your browser using DataLab