Implements two procedures for truncated versions of Fisher's method
truncated(p, ptrunc = NULL, rtrunc = NULL, ...)
# S3 method for truncated
print(x, ...)
# S3 method for truncated
summary(object, ...)
# S3 method for truncated
plot(x, pparams = list(pchs = c(16, 1),
pcols = c("black", "black")), ...)
An object of class ‘truncated
’
a list with entries
The resultant overall p-value
The test statistic
The input vector with illegal values removed
The p-value used for truncation
The rank value used for truncation
A vector containing incl
, the number
of valid values included, excl
, the number of valid
values not used
The method used
A vector of significance values
Value of p to truncate at. See Details
Which rank p to truncate at. See Details
An object of class ‘truncated
’
An object of class ‘truncated
’
Other arguments to be passed through
A list containing a vector pchs
of plotting
symbols and a vector pcols
of colours
Michael Dewey
Uses routines from TFisher to implement truncated Fisher zaykin07,zhang18metap and from mutoss to implement rank-truncated Fisher dudbridge03metap
The print method prints the statistic and its associated
p-value. The summary method also prints how many
of the input values were actually used. The plot method
provides an index plot of the p-values.
By default used p-values are plotted
with a black filled circle and those not used with a black
unfilled circle. The colours and plotting symbols can be changed
in pparams
. The first element of each vector is for the
used p-values and the second for the unused ones.
ranktruncated
, stat.tpm
,
and p.tpm
data(dat.metap)
validity <- dat.metap$validity
truncated(validity, ptrunc = 0.5)
truncated(validity, rtrunc = 5)
Run the code above in your browser using DataLab