This function computes a simulation-based \(p\)-value to assess the null hypothesis of no selection. For details we refer to Rufibach (2011, Section 6).
DearBeggMonotonePvalSelection(y, u, theta0, sigma0, lam = 2, M = 1000,
maxiter = 1000, test.stat = function(x){return(min(x))})
The computed \(p\)-value.
The monotone estimates for each simulation run.
The monotone estimates for the original data.
The test statistics for each simulation run.
The test statistic for the original data.
Matrix that contains the generated \(p\)-values.
Normally distributed effect sizes.
Associated standard errors.
Initial estimate for \(\theta\).
Initial estimate for \(\sigma\).
Weight of the first entry of \(w\) in the likelihood function. Should be the same as used to generate res
.
Number of runs to compute \(p\)-value.
Maximum number of iterations of differential evolution algorithm. Increase this number to get higher accuracy.
A function that takes as argument a vector and returns a number. Defines the test statistic to be used on the estimated selection function \(w\).
Kaspar Rufibach (maintainer), kaspar.rufibach@gmail.com,
http://www.kasparrufibach.ch
Rufibach, K. (2011). Selection Models with Monotone Weight Functions in Meta-Analysis. Biom. J., 53(4), 689--704.
This function is illustrated in the help file for DearBegg
.