Re: [R] within-subject factors in lme

2007-08-22 Thread lorenz.gygax
> > If I understand correctly, you want to include the interactions > > between the random and fixed terms? > > Yes that is exactly I wanted to model. > > > This is done like: > > > > model.lme <- lme(Beta ~ Trust*Sex*Freq, > > random = ~Trust*Sex*Freq|Subj, Model) > > > > But

Re: [R] within-subject factors in lme

2007-08-22 Thread Gang Chen
Hi Lorenz, I really appreciate your comments. > If I understand correctly, you want to include the interactions > between the random and fixed terms? Yes that is exactly I wanted to model. > This is done like: > > model.lme <- lme(Beta ~ Trust*Sex*Freq, > random = ~Trust*Sex*

Re: [R] within-subject factors in lme

2007-08-22 Thread lorenz.gygax
I don't think, this has been answered: > I'm trying to run a 3-way within-subject anova in lme with 3 > fixed factors (Trust, Sex, and Freq), but get stuck with handling > the random effects. As I want to include all the possible random > effects in the model, it would be something more or less >

[R] within-subject factors in lme

2007-08-20 Thread Gang Chen
I'm trying to run a 3-way within-subject anova in lme with 3 fixed factors (Trust, Sex, and Freq), but get stuck with handling the random effects. As I want to include all the possible random effects in the model, it would be something more or less equivalent to using aov > fit.aov <- aov(B

Re: [R] Within-subject factors in lme: complemented

2007-01-15 Thread lorenz.gygax
RE: [R] Within-subject factors in lme > > > > Thanks for your suggestion. I guess the model you are fitting here > > has only a single random effect term, namely subject. If the effect > > of A depends on S, one needs to include an additional random effects > > term for th

Re: [R] Within-subject factors in lme

2007-01-15 Thread lorenz.gygax
> Thanks for your suggestion. I guess the model you are fitting here > has only a single random effect term, namely subject. If the effect > of A depends on S, one needs to include an additional random effects > term for the S:A interaction. It is not quite clear what you are after, but the 'if' s

Re: [R] Within-subject factors in lme

2007-01-12 Thread Kim Mouridsen
Dear Thilo Thanks for your suggestion. I guess the model you are fitting here has only a single random effect term, namely subject. If the effect of A depends on S, one needs to include an additional random effects term for the S:A interaction. With lme I can get output for the effect of A which

Re: [R] Within-subject factors in lme

2007-01-12 Thread Thilo Kellermann
Dear Kim, as far as I understandyour problem correct the specification of the model in lme is: lme( fixed=y ~ A*B, random=~1|S) Thilo On Friday 12 January 2007 15:54, Kim Mouridsen wrote: > Dear R-users > > I'm considering a repeated measures experiment where two > within-subject factors A (2 l

[R] Within-subject factors in lme

2007-01-12 Thread Kim Mouridsen
Dear R-users I'm considering a repeated measures experiment where two within-subject factors A (2 levels) and B (3 levels) have been measured for each of 14 subjects, S. I wish to test the effect of factor A. I know that a variance component model with random effects S, S:A, S:B and S:A:B can be f