Displaying 3 results from an estimated 3 matches for "grouping2".
Did you mean:
grouping
2013 Dec 13
1
data point labeling in xyplot
...,
I have data with a format like:
ID y param1 param2 groupingFactor1 groupingFactor2.....
1 ...
1
1
1
2
2
2
2
3
3
3
so several grouping factors and repeated measures. I am using trellis
and xyplot to get plot with several grouping factors.
something like xyplot(y~x|grouping1*grouping2, data=na.omit(mydata),
panel=function{panel.xyplot(x,y);....}); Lets say x is the x axis
parameter and y the one for y.
So this will produce a plot with 4 windows which groups data according
to all combinations of groupingFactor1 and groupingFactor2.
Now I want to label the data points in each of...
2012 Sep 25
1
mean-aggregate – but use unique for factor variables
...ver there are also some factor-variables in the data-frame that are not grouping variables and I actually would like to aggregate these variables with the unique() function.
Is that possible with the standard aggregate-function?
If I use it like this:
aggregate(data, by=list(data$grouping1, data$grouping2), FUN=mean)
I get vectors of NAs for the other factor-variables in the data.frame.
But I actually want the unique value ?
Is that possible?
thanks!
2002 Aug 24
1
nlme
In the non linear mixed effects package a groupedData object can be
created to facilitate modeling.
The gD object includes a formula of the form 'response variable' ~
'primary covariate' | 'grouping factor'.
In experiments creating response surfaces there are 2 or more primary
covariates.
Is there any way to use the groupedData() function to include 2 primary