Skip to content
Prev 303619 / 398506 Next

Error: level sets of factors are different?

Hello,

The message is not about lengths, it's about sets. It means that the two 
factors, compkey and armkey don't have the same levels, which you can 
see with

levels(compkey)
levels(armkey)

and test for equality.

Also, your post's prologue doesn't have a direct relation with the 
error, you could have skipped the lines up to, including, sink(). It's 
much better to provide an actual data example:

dput( head(outcome, 50) )   # paste the output of this in a post.

Hope this helps,

Rui Barradas
Em 17-08-2012 14:01, Sri krishna Devarayalu Balanagu escreveu: