R Under development (unstable) (2024-01-24 r85824 ucrt) -- "Unsuffered Consequences" Copyright (C) 2024 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > library(nivm) Loading required package: bpcp Loading required package: survival Loading required package: ggplot2 Loading required package: ssanv > ## following gives diff in prop outside CI. > ## This is because ic!=ceiling(nc*q) > ## Now gives warning > #x<-nicqTest(20,g=nimDiffOR,delta0=.1,q=.2,nc=200,nt=300, > # ic=round(600*.2),conf.int=TRUE) > #x > ## check that it works without specifying ic > #x<-nicqTest(20,g=nimDiffOR,delta0=.1,q=.2,nc=200, > # nt=300,conf.int=TRUE) > #x > ## check that alternative="greater" works > ## x=114 barely rejects at 0.025 level > #x<-nicqTest(114,g=nimDiffOR,delta0=.1,q=.2,nc=200, > # nt=300,conf.int=TRUE,alternative="greater") > ## x=113 barely fails to reject at 0.025 level > #x<-nicqTest(113,g=nimDiffOR,delta0=.1,q=.2,nc=200, > # nt=300,conf.int=TRUE,alternative="greater") > > proc.time() user system elapsed 1.15 0.21 1.35