makeSummaryTable: Generate a summary table of a data set.

Description Usage Arguments Value Author(s) Examples

View source: R/makeSummaryTable.R

Description

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.

Usage

1
2
makeSummaryTable(Data, Treatment, Response, 
 alpha = 0.05, Replicate = NULL)

Arguments

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.

Value

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.

Author(s)

Joe Swintek

Examples

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')	

StatCharrms documentation built on Nov. 14, 2020, 5:09 p.m.