[R] Error in 1:object$rank : NA/NaN argument

2006-01-22 Thread Steffen Katzner
can anybody help with the following error message: Error in 1:object$rank : NA/NaN argument I get it with comparisons of single means in an ANOVA. Example data below. Thanks, Steffen seven subjects participated in each of 6 conditions (intervals). subject = factor(rep(c(1:7), each = 6))

[R] Within-Subjects ANOVA comparisons of individual means

2006-01-20 Thread Steffen Katzner
I am having problems with comparing individual means in a within-subjects ANOVA. From my understanding, TukeyHSD is not appropriate in this context. So I am trying to compute contrasts, as follows: seven subjects participated in each of 6 conditions (intervals). subject = factor(rep(c(1:7),

[R] Within-Subjects ANOVA comparisons of individual means

2006-01-18 Thread Steffen Katzner
I am having problems with comparing individual means in a within-subjects ANOVA. From my understanding, TukeyHSD is not appropriate in this context. So I am trying to compute contrasts, as follows: seven subjects participated in each of 6 conditions (intervals). subject = factor(rep(c(1:7),

Re: [R] linear contrasts with anova

2006-01-18 Thread Steffen Katzner
group=factor(rep(c(0:2), each = 8)) ar = data.frame(group, dip) con = matrix(c(1, -1, 0, 1, 0, -1), nrow=3, ncol=2, byrow=F) contrasts(ar$group)=con aovRes = aov(dip~group, ar) summary.aov(aovRes, split=list(group = list(0 vs 1 = 1, 0 vs 3 = 2))) Df Sum Sq Mean Sq F value

[R] Within-Subjects ANOVA TukeyHSD

2004-10-15 Thread Steffen Katzner
Is there a problem with using TukeyHSD for individual comparisons of means coming from a within-subjects ANOVA? I always get: no applicable method for TukeyHSD Thank you, Steffen __ [EMAIL PROTECTED] mailing list

[R] relative frequencies for hist()

2004-08-21 Thread Steffen Katzner
I have problems getting a histogram with relative frequencies on the y-axis. Here is an example data set: a - c(4.626, 4.627, 4.627, 4.628, 4.629, 4.629, 4.630, 4.631, 4.632, 4.632) d = hist(a,freq=F) d$density [1] 299. 100. 200. 100. 100. 200. The obtained