Density, distribution, quantile, random variate generation, and expectation calculation for the distribution for the publication selection meta-analysis model
dpsnorm(x, theta, sigma, alpha = c(0, 0.025, 0.05, 1), eta, log = FALSE)ppsnorm(
q,
theta,
sigma,
alpha = c(0, 0.025, 0.05, 1),
eta,
lower.tail = TRUE,
log.p = FALSE
)
rpsnorm(n, theta, sigma, alpha = c(0, 0.025, 0.05, 1), eta)
dpsnorm
gives the density, ppsnorm
gives the distribution
function, and rpsnorm
generates random deviates.
vector of quantiles.
vector of means.
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.
The effect size distribution for the publication selection model is not
normal, but has itself been selected for. These functions assume
one-sided selection on the effects. These functions do not assume the
existence of an underlying effect size distribution. For these, see
mpsnorm
.
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)
rpsnorm(100, theta = 0, sigma = 0.1, eta = c(1, 0.5, 0.1))
Run the code above in your browser using DataLab