I am trying to run conditional logical regression for data, which is similar to the example below:
table.10.3 <- data.frame(pair=rep(1:144,rep(2,144)), MI=rep(c(0,1),144), diabetes=c(rep(c(1,1),9), rep(c(1,0),16), rep(c(0,1),37), rep(c(0,0),82)) ) # head(table.10.3) # pair MI diabetes # 1 0 1 # 1 1 1 # 2 0 1 # 2 1 1 # 3 0 1 # 3 1 1 library("survival") fit.CLR <- clogit(MI ~ diabetes + strata(pair), method="exact", data=table.10.3) summary(fit.CLR)
I get a resume. My question is how to graphically represent the result? I need it because I am very new to R-graphics. I tried the vcd package. I can get a mosaic plot for some other dummy data. But I want to build the results of the clogit model.
r plot
user3228463
source share