R/plotor.R

Defines functions plotor

Documented in plotor

plotor <-
function(x, y, ...){
    x<-as.numeric(x)
    y<-as.numeric(y)
    m<-length(x)
    n<-length(y)
    z<-sort(c(x,y))
    tl<-seq(max(min(x),min(y))*1.1, min(max(x),max(y))*.9, len=min(m,n))
    Fx<-ecdf(x)
    Gy<-ecdf(y)
    xt<-"t"
    yt<-"Emipirical Odds Ratio"
    eor.n<-((1-Fx(tl))*Gy(tl))
    eor.d<-((1-Gy(tl))*Fx(tl))
    eor<-((1-Fx(tl))*Gy(tl))/((1-Gy(tl))*Fx(tl))
    plot(tl[eor.n>0 & eor.d>0],eor[eor.n>0 & eor.d>0], xlab=xt, ylab=yt, ...)
}

Try the sporm package in your browser

Any scripts or data that you put into this service are public.

sporm documentation built on Jan. 27, 2021, 5:08 p.m.