powered by
Compute the Bayes factor (BF10) for a two-sample independent-samples t-test. Supports both point-null and interval-null hypotheses.
BF10.ttest.TwoSample( tval, N1, N2, prior_analysis, location, scale, dff, alternative, ROPE = NULL )
A list of class BFvalue_t containing:
BFvalue_t
Character string describing the test type.
Computed Bayes factor BF10.
Observed t-value.
Degrees of freedom (currently NA / not computed).
List with the analysis prior parameters: prior_analysis, location, scale, and optionally dff.
prior_analysis
location
scale
dff
Hypothesis tested ("two.sided", "greater", or "less").
"two.sided"
"greater"
"less"
Interval bounds used, if any.
Sample size of group 1 .
Sample size of group 2 .
Numeric, observed Cohen's d.
Numeric, p.value.
Numeric scalar. Observed t-value from the two-sample t-test.
Numeric integer. Sample size of group 1 (must be > 2, will be rounded to nearest integer).
Numeric integer. Sample size of group 2 (must be > 2, will be rounded to nearest integer).
Character. Analysis prior under the alternative hypothesis: "Normal", "Moment" (normal-moment prior), or "t-distribution".
"Normal"
"Moment"
"t-distribution"
Numeric scalar. Location parameter of the analysis prior.
Numeric scalar > 0. Scale parameter of the analysis prior.
Numeric scalar. Degrees of freedom for the analysis prior (required if prior_analysis = "t-distribution"; ignored otherwise).
Character. The direction of the alternative hypothesis two-sided ("two.sided"), right-sided ("greater"), or left-sided ("less").
Optional numeric. Bounds for an interval null:
For "two.sided", must be a numeric vector of length 2 with distinct finite values.
For "greater", must be a single numeric scalar > 0.
For "less", must be a single numeric scalar < 0.
BF10.ttest.TwoSample( tval = -1.148, N1 = 53, N2 = 48, prior_analysis = "t-distribution", location = 0, scale = 0.707, dff = 1, alternative = "two.sided", ROPE = c(-0.36,0.36))
Run the code above in your browser using DataLab