R/FileDrawer.R

"FileDrawer" <-
function(x, rc=.1)
 {
 k <- length (x$Rxy[!(is.na(x$Rxy))])
 rb <- rbar(x)
 rc <- rc 
 n <- k * (rb/rc - 1)
 mat <- matrix(n)
 colnames(mat) <- c("# of 'lost' studies needed")
 return(mat)
 }

Try the psychometric package in your browser

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

psychometric documentation built on Nov. 6, 2023, 1:06 a.m.