Description Usage Arguments Details Value References See Also Examples
View source: R/csSensitivity.R
Perform a sensitivity analysis for the Bayes factors computed
with the csCompare
results
1 2 3 
cs1 
a numeric vector of values. If the 
cs2 
a numeric vector of values. If the 
group 
column index or name that contain the group data. See

data 
numeric matrix or data frame that contains the relevant data. 
alternative 
a character string for the speficication of
the alternative hypothesis. Possible values: 
conf.level 
Interval's confidence level. 
mu 
a numeric value for the mean value or mean difference. 
rscaleSens 
the scale factor for the prior used in the Bayesian t.test 
out.thres 
The threeshold for detecting outliers (default is 3). If set
to 0, no outliers analysis will be performed. See 
csCompare
performs both a student ttest (using the
stats::t.test
function) and a Bayesian ttest (using the
BayesFactor::ttest.tstat
). In case group
is not defined,
pairedsamples ttests are run. In case the group
is
defined, then the csCompare first computes difference scores between the cs1
and the cs2
(i.e., cs1  cs2).
In case the group argument is defined
but, after removal of NA's (stats::na.omit
), only one group
is defined, a paired samples ttest is run.
The function returns a data frame with the results of the student ttest and the Bayesian ttest.
Krypotos, A.M., Klugkist, I., & Engelhard, I. M. (submitted).Bayesian Hypothesis Testing for Human Threat Conditioning Research: An introduction and the condir R package.
csCompare
, t.test
,
ttest.tstat
1 2  csSensitivity(cs1 = rnorm(n = 100, mean = 10),
cs2 = rnorm(n = 100, mean = 9))

Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.