By this process the variance and central measures ar found: average, medium and mode of grouped data.

stat.freq(histogram)

Arguments

histogram

Object create by function hist()

Value

Statistics of grouped data.

See also

Examples

library(agricolae) data(growth) grouped<-with(growth,hist(height,plot=FALSE)) measures<-stat.freq(grouped) print(measures)
#> $variance #> [1] 1.954023 #> #> $mean #> [1] 10.83333 #> #> $median #> [1] 11 #> #> $mode #> [- -] mode #> [1,] 10 11 11 #> [2,] 11 12 11 #>