Displaying 4 results from an estimated 4 matches for "factorc".
Did you mean:
factor
2008 Nov 04
1
How to generate a new factor variable by two other factor variables
How to generate a new factor variable by two other factor variables?
For example, if I have two factor variables, factorA and factorB,
factorA factorB
0 0
0 0
1 0
0 1
1 1
Is there a simple way to generate a new 4-levels factor variable as
factorC factorA factorB
0 0 0
0 0 0
1 1 0
2 0 1
3 1 1
--
Shuguang Sun
Fudan University, China
2010 Oct 06
2
ANOVA boxplots
...s (levels), B two different drug treatments and C three groups
of patients, and I wanna plot the baoxplots for the different tasks, but
/only/ for one particular patient group, how can i do this without
separating the data.frame into several arrays? i tried something like
plot(dataSubjects~factorA|factorC, data=mydata)
but apparently it does not work. Any help on this is highly appreciated.
cheers
Alex
[[alternative HTML version deleted]]
2010 Sep 15
0
A question on modelling binary response data using factors
...levels (C1,C2,C3,C4,C5). The experiment has only
partial coverage, that is not every A is tested with every B and every C.
However,
I was careful in the experimental design to ensure that every A and every B
was tested against at least one C.
Here is my experimental data:
FactorA FactorB FactorC Hit Miss
A1 B1 C1 17 83
A1 B1 C2 17 83
A1 B1 C3 18 82
A1 B1 C4 NA NA
A1 B1 C5...
2007 Mar 29
3
Vector indexing question
Suppose you have 4 related vectors:
a.id<-c(1:25, 1:25, 1:25)
a.vals <- c(101:175) # same length as a.id (the values for those IDs)
a.id.levels <- c(1:25)
a.id.ratings <- rep(letters[1:5], times=5) # same length as a.id.levels
What I would like to do is specify a rating from a.ratings (e.g. "e"),
get the vector of corresponding IDs from a.id.levels (via