R/ci.mat.R

Defines functions ci.mat

Documented in ci.mat

ci.mat <-
function( alpha=0.05, df=Inf )
{
ciM <- rbind( c(1,1,1), qt(1-alpha/2,df)*c(0,-1,1) )
colnames( ciM ) <- c("Estimate", 
   paste( formatC( 100*   alpha/2 , format="f", digits=1 ), "%", sep="" ),
   paste( formatC( 100*(1-alpha/2), format="f", digits=1 ), "%", sep="" ) )
ciM
}

Try the Epi package in your browser

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

Epi documentation built on March 19, 2024, 3:07 a.m.