ciStrT | R Documentation |
Returns a string with the 95% CI from a t.test in Latex format.
ciStrT(tObj, numDigits = 0, unit = "")
tObj |
The returned object from a call to t.test |
numDigits |
The number of digits to round to |
unit |
"" vs. "ms" vs. "mv" vs. "%" |
character
# Example 1: # create dataframe and add data with 2(Comp: comp vs. incomp) levels dat <- createDF(nVP = 50, nTrl = 1, design = list("Comp" = c("comp", "incomp"))) dat <- addDataDF(dat, RT = list("Comp comp" = c(500, 100, 100), "Comp incomp" = c(600, 100, 100))) tObj <- t.test(dat$RT[dat$Comp == "incomp"], dat$RT[dat$Comp == "comp"], paired = TRUE) ciString <- ciStrT(tObj, unit = "ms")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.