Displaying 2 results from an estimated 2 matches for "groupvariable".
2011 Aug 25
2
within-groups variance and between-groups variance
...upsVariance(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:
=======================
calcWithinGroupsVariance <- function(variable,groupvariable)
{
# find out how many values the group variable can take
groupvariable2 <- as.factor(groupvariable[[1]])
levels <- levels(groupvariable2)
numlevels <- length(levels)
# get the mean and standard deviation for each group:
numtotal...
2002 Jul 03
2
grouping in scatterplot3d
Hi all,
I've been using the scatterplot3d function (from the scatterplot3d library) to create 3D plots. I was wondering whether there is
anyway to group the points according to a particular group variable. For example I used the plot function as
plot( factor( <GROUPINGVAR> ) , <PLOTVARS> )
to organise the results in a according to the grouping variable. I was wondering