Description Usage Arguments Value Author(s) Examples
View source: R/makeSummaryTable.R
Generates a table of standard summary statistical values for each treatment level of a response from a data set. This function will always be called when standard numerical endpoints are analysed.
1 2 | makeSummaryTable(Data, Treatment, Response,
alpha = 0.05, Replicate = NULL)
|
Data |
A data set. |
Treatment |
The name (as a string) of the treatment variable. |
Response |
The name (as a string) of the endpoint. |
alpha |
The alpha level used to calculate confidence intervals. |
Replicate |
The name (as a string) of the replicate variable. |
A data set containing the mean, median, standard deviation, standard error, and confidence intervals for each treatment level of the response. If a replicate variable is supplied, the output will also contain the mean of the replicate means and the number of replicates.
Joe Swintek
1 2 3 4 5 6 7 8 9 | #Data
data(lengthWeightData)
#Subset the data
SubData<-lengthWeightData[lengthWeightData$Age=='16 week', ]
SubData<-SubData[SubData$Generation=='F1', ]
SubData<-SubData[SubData$SEX=='M', ]
#Run
makeSummaryTable(Data=SubData, Treatment='Treatment',
Response='WEIGHT')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.