Displaying 1 result from an estimated 1 matches for "calcwithingroupsvariance".
2011 Aug 25
2
within-groups variance and between-groups variance
...eral numerical variables describing samples from a number of groups.
I didn't find such functions in R, so wrote my own versions myself (see
below). I can calculate the within- and between-groups variance for the
Sepal.length variable (iris[1]) in the "iris" data set, by typing:
> calcWithinGroupsVariance(iris[1],iris[5])
[1] 0.2650082
> calcBetweenGroupsVariance(iris[1],iris[5])
[1] 0.4300145
I am wondering however if there are functions for doing this already in
R?
I would prefer to use a standard R function if one exists.
Kind Regards,
Avril
Within-Groups Variance:
=======================...