| prior_weightfunction | R Documentation |
Create weightfunction publication-bias priors and their weight-prior helper objects.
prior_weightfunction(
side = "one-sided",
steps = c(0.025, 0.05),
weights = wf_cumulative(),
reference = "most_significant",
prior_weights = 1
)
wf_cumulative(alpha = NULL)
wf_fixed(omega)
wf_independent(prior, scale = "omega")
side |
character. Either |
steps |
numeric vector of p-value cut points. These define
|
weights |
a weight-prior object created by |
reference |
character. Reference bin, currently
|
prior_weights |
numeric prior model weight. |
alpha |
optional positive cumulative-Dirichlet concentration parameters,
one per p-value bin. If |
omega |
fixed publication weights, one per bin; values must be
non-missing, nonnegative, and match |
prior |
continuous simple prior distribution for each non-reference weight. Point, discrete, mixture, and other non-simple priors are invalid. |
scale |
latent scale for independent weights; either |
Fixed weights must have one value per p-value bin
(length(steps) + 1), and the reference bin must have weight 1.
prior_weightfunction() returns an object inheriting from
prior and prior.weightfunction; the wf_*() helpers
return weightfunction_weights helper objects with subclass markers.
publication_bias_prior_specification
prior_weightfunction("one-sided", steps = 0.025)
prior_weightfunction(
side = "one-sided",
steps = c(0.025, 0.5),
weights = wf_fixed(c(1, 0.8, 0.6))
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.