[R] Package VIF

2013-04-17 Thread Jaap van Wyk
Hi Could you perhaps possibly help me. I would like to use the package VIF but cannot get results I attach the .csv file and my R code. What do I have to do ? Any help is greatly appreciated. library(VIF) coal <- read.csv("e:/freekvif/cqa1.csv",header=TRUE) y <- as.numeric(coal$AI) x <-

[R] Help needed with data format required for package VIF

2013-04-16 Thread Jaap van Wyk
Hallo Could somebody perhaps assist with my dilemma, Package: VIF. The examples are not very clear (data is stored internally). I wish to read a .csv file (header=TRUE) and run VIF. But I get nonsensical output. I have downloaded the boston.csv file (from the referring website). How do I run

[R] Simulating distribution of max of two die

2011-08-29 Thread Jaap van Wyk
Hallo I am teaching a very elementary intro course about R, and want to show the students how to find the distribution of the maximum of rolling two balanced die. Is there perhaps a more elegant way to do this, other than the way I am using below? (I would like to show them two ways - the