I have not come across that error myself (and have no clue what it
means) but there is a thread on this on the general R-help list which
you may find useful:
<http://tolstoy.newcastle.edu.au/R/help/06/06/29088.html> and
following.
> Are the variables 'Item' and 'Subject' coded as 'factors'
That depends on how you enter them: if you do the "read.table"
standard kind of input, then Subject will be a factor and Item will
not be (since your Item column seems to contain numbers only), which
is probably not what you want and that's something I'd play around
with first. If you set as.is or colClasses differently from the
default, then we can't say that without seeing your actual line and
data.
HTH at least a bit,
STG
--
Stefan Th. Gries
-----------------------------------------------
University of California, Santa Barbara
http://www.linguistics.ucsb.edu/faculty/stgries
-----------------------------------------------
> The coding model I am using is
> mlmcr <-lmer(Occur ~ (1 | Subject) + (1 | Item) * Placeart * Voicing *
> Stress * Vowel * Order * Mannerartic * Homorg, data = numcr)
This is a very very complex model. Do you have theories about a 7 way
interaction? You might want to try starting with a simpler model that
uses + instead of *, and then selectively add interactions where you
have specific predictions about non-additive effects.
> "Error in lmer(Occur ~ (1 | Subject) + (1 | Item) * Placeart * :
> Leading minor of order 11 in downdated X'X is not positive definite"
>
> Does anyone know what exactly the error message refers to?
While I still don't know the exact meaning of the error message, I can
tell you that practically speaking it means that this means that the
model won't be able to converge as currently specified. My best stab at
a more technical explanation is that this happens a lot if there's not
much variance in one of the factors or interaction terms being
investigated. As mentioned above, you've got a lot of interaction
terms, and so it's not surprising that the cells are sparsely populated
and there's not much variance in the sample.
> Are the variables 'Item' and 'Subject' coded as 'factors'
You can check this by running
--8<---------------cut here---------------start------------->8---
class(numcr$Subject) # or
is.factor(numcr$Subject)
--8<---------------cut here---------------end--------------->8---
If the first returns "factor" or the second returns "TRUE", then your
random effects are coded as factors. If they aren't and you want them
to be, try
--8<---------------cut here---------------start------------->8---
numcr$Subject <- as.factor(numcr$Subject) # or
numcr$Subject <- factor(numcr$Subject, levels=c(...), labels=c(...))
--8<---------------cut here---------------end--------------->8---
where the "levels" and "labels" arguments give you more flexibility in
specifying how the current integer representation will be converted into
a factor.
HTH,
/au
--
Austin Frank
http://aufrank.net
GPG Public Key (D7398C2F): http://aufrank.net/personal.asc
> I am trying to run a Mixed Log Analysis on the occurrence of an
> epenthetic vowel (The dependent variable is categorical (Occur)). The
> independent variables are all categorical and it looks something like
> this:
Another note: if Occur is dichotomous, then you want to be using mixed
logit models. In older versions of lme4 this is done by adding an
argument of family="binomial" to the call to lmer(). In current
development versions of lme4, this is done by using the function
glmer(), again with an argument of family="binomial" after the model
specification. If Occur is polytomous, lme4 won't be able to handle
this data set. Apparently the software packages called AD Model Builder
and MLWin can handle multi-level modeling with mixed effects and
multinomial dependent variables, though I have yet to use either one.
Good luck,
> Can you please suggest a source that deals with how to read the model summary?
The best sources I know of off the top of my head are Crawley's (2007)
R book, Baayen's (2008) Analyzing Linguistic Data, Faraway (2006),
<http://www.mpi.nl/world/persons/private/baayen/publications/baayenDavidsonBates.pdf>,
and stuff from T. Florian Jaeger's website at
<http://www.bcs.rochester.edu/people/fjaeger/presentations.html> and
<http://www.bcs.rochester.edu/people/fjaeger/tutorials.html>.
HTH,