rongguiwong wrote:

is there any existing function for computing condition index?


See
?kappa

Kjetil

" analysing multivariate data" say that we can use condition index to check multicollinearity.saying that we can get it via SVD. The elements of the diagnoal matrix are the standard deviations of the uncorrelated vectors. the condition index is the ratio of the largest of these numbers to the smallest.
so if i have a data frame a,containg variables x,y,z.
my model is :
model<-lm(y~x+z,data=a)
so use the following to compute the condition index,but it seems wrong.


temp<-svd(model.matrix(model))$d
max(temp)/min(temp)

is it wrong?

______________________________________________
[EMAIL PROTECTED] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html






--

Kjetil Halvorsen.

Peace is the most effective weapon of mass construction.
              --  Mahdi Elmandjra

______________________________________________
[EMAIL PROTECTED] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Reply via email to