StatCharrms (version 0.90.96)

basicAnova: Perform a standard one way ANOVA.

Description

A wrapper function for the aov function, which performs a standard ANOVA.

Usage

basicAnova(Data, Treatment, Response, WeightList)

Arguments

Data

A data set.

Treatment

The name (as a string) of the treatment variable.

Response

The name (as a string) of the response variable.

WeightList

The name (as a string) of the variables containing the weight for ANOVA. Set this value to NULL to indicate that weights are not being used.

Value

Sum Sq

The within treatment sum of squares.

Df

The degrees of freedom.

F value

The value of the F-statistic.

Pr(>F)

The p-value corresponding to the F statistic.

Signif

The significance flag for the where "." is a p-value > 0.05, "*" is a 0.01 < p-value <= 0.05, "**" for 0.001 < p-value <= 0.01, and "***" for p-value <= 0.001.

References

Chambers, J. M., Freeny, A and Heiberger, R. M. (1992) emphAnalysis of variance; designed experiments Chapter 5 of Statistical Models in S eds J. M. Chambers and T. J. Hastie, Wadsworth & Brooks/Cole

See Also

aov

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 
		basicAnova(Data=SubData, Treatment='Treatment',
			Response='WEIGHT',WeightList=NULL)
# }

Run the code above in your browser using DataCamp Workspace