What you are doing wrong:

1. You haven't read the posting guide, and so have not posted with
sufficient clarity for people to help (at least I can't -- what's your data
look like?);

2. You've posted to the wrong list: mixed models posts are better answered
on the r-sig-mixed-models list.

3. I am not even sure that this is an R question, and not just a
statistical question. But I'll leave that for the experts on the mixed
models list.

-- Bert

On Sun, Dec 16, 2012 at 8:11 PM, Stephen Sammut <ssammut@gmail.com> wrote:

> I am new to R and have been doing my utmost to learn it in order to teach
> my
> students how to use it as an alternative to programs you have to purchase ­
> and I am very grateful for the program and what it can doŠ.but I am having
> a
> slight problem as I also am not very much into programming ­ though willing
> to learn.
>
> I have been trying to apply a mixed model ANOVA to some data I have. In
> short ­ one repeated measure (behavior being observed with 8 levels), one
> independent measure (Age with 2 levels - classified as <21 or >=21) and
> then
> the dependent variable is the score that the subjects obtained for the
> specific behavior (Frequency).
>
> I have been trying to use the aov model set up in the following way based
> on
> what I have searched online:
> aov(Frequency~Behavior*Age+Error(Subject/Behavior)+Age, dataframe). My data
> is organized such that I have the data in the long format ­ Subject,  Age,
> Behavior, Frequency.
>
> All this gives me the following error:
>
> Warning message:
> In aov(Frequency~Behavior*Age+Error(Subject/Behavior)+Age,  :
>   Error() model is singular
>
> If you would kindly excuse my ignorance, would someone please guide me as
> to
> what I am doing wrong.
>
> Thank you in advance.
> Stephen
>
>
>
>         [[alternative HTML version deleted]]
>
>
> ______________________________________________
> R-help@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>
>


-- 

Bert Gunter
Genentech Nonclinical Biostatistics

Internal Contact Info:
Phone: 467-7374
Website:
http://pharmadevelopment.roche.com/index/pdb/pdb-functional-groups/pdb-biostatistics/pdb-ncb-home.htm

	[[alternative HTML version deleted]]


