Thanks Dej,

Try
Data$School = as.factor(Data$School)
And the same for that ID variable.


Yes this worked!!! Thanks for your advice

Etn

On Mon, Apr 26, 2010 at 6:10 PM, Daniel Ezra Johnson <
danielezrajohnson@gmail.com> wrote:

> Sounds like one or more of your variables is represented as a number when
> it's really a factor?
>
> Try
>
> Data$School = as.factor(Data$School)
> And the same for that ID variable.
>
> Then try the model again.
>
> Hth
> Dej
>
>
> On Apr 26, 2010, at 10:38 AM, Etn <2nuzzbot@gmail.com> wrote:
>
>  Hi all,
>>
>> Apologies for the simplicity of my question..... I'm constructing a
>> multilevel model in R and I receive the following error.... if anyone can
>> indicate what the error means it would be greatly appreciated, thanks.
>>
>> Model<- lmer(Res~Gender+(1|School)+(1|School:Student_ID), family=binomial,
>> data=Data)
>>
>>
>> Error: length(f1) == length(f2) is not TRUE
>> In addition: Warning messages:
>> 1: In School:Student_ID :
>> numerical expression has 41143 elements: only the first used
>> 2: In School:Student_ID:
>> numerical expression has 41143 elements: only the first used
>>
>>  [[alternative HTML version deleted]]
>>
>> _______________________________________________
>> R-sig-mixed-models@r-project.org mailing list
>> https://stat.ethz.ch/mailman/listinfo/r-sig-mixed-models
>>
>
>

	[[alternative HTML version deleted]]


