pairwiseComparison.fn {CGManalyzer} | R Documentation |
function to calculate mean difference and its confidence interval, SSMD, p-value of t.test for pairwise comparison
pairwiseComparison.fn(y, INDEX, na.rm = TRUE, conf.level = 0.95)
y |
response value |
INDEX |
vector for group names |
na.rm |
whether to remove value for calculation |
conf.level |
confidence level for two-sided t-test |
function to calculate mean difference and its confidence interval, SSMD, p-value of t.test for pairwise comparison
a vector for calculated mean difference, its upper and lower bounds of CI, SSMD and pvalue in each pairs of group comparison, along with mean, standard deviation, and sample size in each group
Xiaohua Douglas Zhang
Zhang XD, Zhang Z. CGManalyzer: a R package for analyzing continuous glucose monitoring studies
library(CGManalyzer) package.name <- "CGManalyzer" source( system.file("SPEC", "SPECexample.R", package = package.name) ) MSE.mat <- read.csv(file=system.file("SPEC", "MSE.csv", package = package.name), row.names=1) pairwiseComparison.fn(y=MSE.mat[, 1], INDEX=subjectTypes, na.rm=TRUE)