control_density {zcurve} | R Documentation |
Control settings for the z-curve 2.0 density algorithm
Description
All settings are passed to the density fitting
algorithm. All unspecified settings are set to the default value.
Setting model = "KD2"
sets all settings to the default
value irrespective of any other setting and fits z-curve as
describe in Bartoš and Schimmack (2020). In order to fit the
z-curve 1.0 density algorithm, set model = "KD1"
and go to
control_density_v1
Arguments
version |
Which version of z-curve should be fitted. Defaults to
|
model |
A type of model to be fitted, defaults to |
sig_level |
An alpha level of the test statistics, defaults to
|
a |
A beginning of fitting interval, defaults to
|
b |
An end of fitting interval, defaults to |
mu |
Means of the components, defaults to |
sigma |
A standard deviation of the components, "Don't touch this"
\- Ulrich Schimmack, defaults to |
theta_min |
Lower limits for weights, defaults to
|
theta_max |
Upper limits for weights, defaults to
|
max_iter |
A maximum number of iterations for the nlminb
optimization for fitting mixture model, defaults to |
max_eval |
A maximum number of evaluation for the nlminb
optimization for fitting mixture model, defaults to |
criterion |
A criterion to terminate nlminb optimization,
defaults to |
bw |
A bandwidth of the kernel density estimation, defaults to |
aug |
Augment truncated kernel density, defaults to |
aug.bw |
A bandwidth of the augmentation, defaults to |
n.bars |
A resolution of density function, defaults to |
density_dbc |
Use bckden to estimate a truncated kernel density,
defaults to |
compute_FDR |
Whether to compute FDR, leads to noticeable increase in
computation, defaults to |
criterion_FDR |
A criterion for estimating the maximum FDR, defaults
to |
criterion_FDR_dbc |
A criterion for estimating the maximum FDR using
the bckden function, defaults to |
precision_FDR |
A maximum FDR precision, defaults to |
References
Bartoš F, Schimmack U (2020). “Z-curve. 2.0: Estimating Replication Rates and Discovery Rates.” doi:10.31219/osf.io/wr93f, submitted for publication.
See Also
zcurve()
, control_density_v1, control_EM
Examples
# to decrease the criterion and increase the number of iterations
ctrl <- list(
max_iter = 300,
criterion = 1e-4
)
## Not run: zcurve(OSC.z, method = "density", control = ctrl)