StatCharrms (version 0.90.92)

makeSummaryTable: Generate a summary table of a data set.

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

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.

Examples

Run this code
# NOT RUN {
	#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')	
# }

Run the code above in your browser using DataCamp Workspace