csPlot | R Documentation |
Plot the mean of median of each CRs, for each CS
csPlot(
cs1,
cs2,
group = NULL,
data = NULL,
ylab = "CRs",
col = c("black", "grey"),
legend = c("cs1", "cs2")
)
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. |
ylab |
Label for the x-axis |
col |
The color of the error bars to be used (either given as a numeric vector or a character string). The length of the chosen colors should be equal to the length of the legend names otherwise a warning is returned. |
legend |
The legend names to be used. The length of the legend labels should be the same as the length of the color string, otherwise a warning is returned. |
csCompare
performs both a student t-test (using the
stats::t.test
function) and a Bayesian t-test (using the
BayesFactor::ttest.tstat
). In case group
is not defined,
paired-samples t-tests 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 t-test is run.
t.test
, ttest.tstat
set.seed(1000)
csPlot(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.