Density, distribution, and random variate generation for the marginalized distribution of the publication selection meta-analysis model
dmpsnorm(x, theta0, tau, sigma, alpha = c(0, 0.025, 0.05, 1), eta, log = FALSE)pmpsnorm(
q,
theta0,
tau,
sigma,
alpha = c(0, 0.025, 0.05, 1),
eta,
lower.tail = TRUE,
log.p = FALSE
)
rmpsnorm(n, theta0, tau, sigma, alpha = c(0, 0.025, 0.05, 1), eta)
dmpsnorm
gives the density, pmpsnorm
gives the distribution
function, and rmpsnorm
generates random deviates.
vector of quantiles.
vector of means.
vector of heterogeneity parameters.
vector of study standard deviations.
vector of thresholds for publication bias.
vector of publication probabilities, normalized to sum to 1.
logical; If TRUE
, probabilities are given as
log(p)
.
logical; If TRUE
(default), the probabilities are
\(P[X\leq x]\) otherwise, \(P[X\geq x]\).
number of observations. If length(n) > 1
, the length is taken
to be the number required.
These functions assume a normal underlying effect size distribution and
one-sided selection on the effects. For the fixed effects publication
bias model see psnorm
.
Hedges, Larry V. "Modeling publication selection effects in meta-analysis." Statistical Science (1992): 246-255.
Moss, Jonas and De Bin, Riccardo. "Modelling publication bias and p-hacking" Forthcoming (2019)
rmpsnorm(100, theta0 = 0, tau = 0.1, sigma = 0.1, eta = c(1, 0.5, 0.1))
Run the code above in your browser using DataLab