Displaying 1 result from an estimated 1 matches for "t3freq".
Did you mean:
t1freq
2006 May 08
1
performing functions on variables of different length
...length(outcome)
[1] 368
> length(grp)
[1] 184
> length(subject)
[1] 92
> length(time)
[1] 184
Below is the syntax I have been using and the date frame that I generated -
study1dat <- read.csv("c:\\study1rb.csv",header=T)
attach (study1dat)
outcome <- c(t1freq, t2freq,t3freq,t4freq)
grp <- factor( rep(group, 2) )
time <- gl(4, 46)
subject <- gl(46,1,92)
data.frame(subject, grp, time, outcome)
subject grp time outcome
1 1 0 1 4
2 2 0 1 3
3 3 0 1 7
4 4 0 1 0
5 5 0 1...