Re: [R] Finding out collinearity in regression

From: Kevin Wang <Kevin.Wang_at_maths.anu.edu.au>
Date: Thu 30 Jun 2005 - 13:54:00 EST

Hi,

Young Cho wrote:

> fit <- aov( Y ~ . , data = dat)
> Error in "contrasts<-"(`*tmp*`, value =
> "contr.treatment") :
> contrasts can be applied only to factors with
> 2 or more levels
>
> I think there is a dependency in explanatory
> variables. So, I wanted to use alias to find out a
> dependency in design matrix but I can't because I
> cannot create "fit" in the first place.

The error message actually looks like you have got (at least) a variable that only has 1 level, e.g. a factor with only one level.

Cheers,

Kev

-- 
Ko-Kang Kevin Wang
PhD Student
Centre for Bioinformation Science
Building 27, Room 1004
Mathematical Sciences Institute (MSI)
Australian National University
Canberra, ACT 2601
Australia

Homepage: http://wwwmaths.anu.edu.au/~wangk/
Ph (W): +61-2-6125-2431
Ph (H): +61-2-6125-7407
Ph (M): +61-40-451-8301

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Received on Thu Jun 30 13:56:13 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:33:07 EST