R/survSNP.power.table.R

Defines functions survSNP.power.table

Documented in survSNP.power.table

survSNP.power.table <-
function(GHRs,ns,rafs,erates,pilm,lm,model,test,alpha,exactvar=FALSE,B=0)
  {
    GHR<-raf<-n<-erate<-NULL
    res=foreach(GHR=GHRs,.combine=rbind)%:%
      foreach(raf=rafs,.combine=rbind)%:%
        foreach(n=ns,.combine=rbind)%:%
            foreach(erate=erates,.combine=rbind)%do%{
                sim.snp.expsurv.power(GHR=GHR,
                                      B=B,
                                      n=n,
                                      raf=raf,
                                      erate=erate,
                                      pilm=pilm,
                                      lm=lm,
                                      model=model,
                                      test=test,
                                      alpha=alpha,
                                      exactvar=exactvar)}
    return(res)
  }

Try the survSNP package in your browser

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

survSNP documentation built on Feb. 16, 2023, 10:10 p.m.