basicAnova: Perform a standard one way ANOVA.

Description Usage Arguments Value Author(s) References See Also Examples

View source: R/basicAnova.R

Description

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

Usage

1
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.

Author(s)

Joe Swintek

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

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

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