File: FileDrawer.R

package info (click to toggle)
r-cran-psychometric 2.4-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 532 kB
  • sloc: makefile: 2
file content (12 lines) | stat: -rw-r--r-- 221 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
"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)
 }