GroupComparison.fn {RespirAnalyzer} | R Documentation |
Function to calculate the statistics for each Group
Description
function to calculate the statistics for each Group: Number of Samples, mean, standard deviation (SD), standard error (SE), median, confident interval, p-value of ANOVA
Usage
GroupComparison.fn(Data, GroupName, na.rm = TRUE, conf.level = 0.95)
Arguments
Data |
vector for response values |
GroupName |
vector for group names |
na.rm |
whether to remove value for calculation |
conf.level |
confidence level |
Value
a dataframe for the statistics for each Group. Number of Samples, mean
standard deviation (SD), median, upper and lower bounds of CI, p-value of ANOVA
References
Zhang T, Dong X, Chen C, Wang D, Zhang XD. RespirAnalyzer: an R package for continuous monitoring of respiratory signals.
Examples
data("HqData")
PP_Hq <- HqData
filenames <- row.names(PP_Hq)
q <- -10:10
ClassNames <- c(substr(filenames[1:19], start = 1, stop = 3),
substr(filenames[20:38], start = 1, stop = 5))
Class <- unique(ClassNames)
Data <- GroupComparison.fn(PP_Hq[,1],ClassNames)
Data
[Package RespirAnalyzer version 1.0.2 Index]