R/zcurve_density.R
control_density.Rd
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
Which version of z-curve should be fitted. Defaults to
2
= z-curve 2.0. Set to 1
in order to fit the original
version of z-curve. For its settings page go to control_density_v1.
A type of model to be fitted, defaults to "KD2"
(another possibility is "KD1"
for the original z-curve 1.0, see
control_density_v1 for its settings)
An alpha level of the test statistics, defaults to
.05
A beginning of fitting interval, defaults to
qnorm(sig_level/2,lower.tail = F)
An end of fitting interval, defaults to 6
Means of the components, defaults to seq(0,6,1)
A standard deviation of the components, "Don't touch this"
\- Ulrich Schimmack, defaults to 1
Lower limits for weights, defaults to
rep(0,length(mu))
Upper limits for weights, defaults to
rep(1,length(mu))
A maximum number of iterations for the nlminb
optimization for fitting mixture model, defaults to 150
A maximum number of evaluation for the nlminb
optimization for fitting mixture model, defaults to 1000
A criterion to terminate nlminb optimization,
defaults to 1e-03
A bandwidth of the kernel density estimation, defaults to .10
Augment truncated kernel density, defaults to TRUE
A bandwidth of the augmentation, defaults to .20
A resolution of density function, defaults to 512
Use bckden to estimate a truncated kernel density,
defaults to FALSE
, in which case density is used
Whether to compute FDR, leads to noticeable increase in
computation, defaults to FALSE
A criterion for estimating the maximum FDR, defaults
to .02
A criterion for estimating the maximum FDR using
the bckden function, defaults to .01
A maximum FDR precision, defaults to .05
Bartoš F, Schimmack U (2020). “Z-curve. 2.0: Estimating Replication Rates and Discovery Rates.” doi:10.31219/osf.io/wr93f , submitted for publication.