Re: [R] Chi2 algorithm - R

2016-11-24 Thread Jeff Newmiller
t;> > }} >> > chi2(df1, alp=0.5, del=0.05)$Disc.data >> > >> > The point is that, observing the dataframe printed out by the last >> > instruction, you can see that no attribute is removed. The >discretized >> data >> > frame still h

Re: [R] Chi2 algorithm - R

2016-11-23 Thread Olivier Crouzet
r: "R-help" Date: Wed, 23 Nov 2016 22:26:45 To: peter dalgaard Cc: Subject: Re: [R] Chi2 algorithm - R What does it mean to "have a mantainer"? Is he a third party? Is he an individual developer and you can install whose package on your risk? Are the package created by main

Re: [R] Chi2 algorithm - R

2016-11-23 Thread Luke Skywalker
f(i %% 2 != 0){ > >df1 <- rbind(df1, iris[i,]) > >}} > > chi2(df1, alp=0.5, del=0.05)$Disc.data > > > > The point is that, observing the dataframe printed out by the last > > instruction, you can see that no attribute is removed. The discretized >

Re: [R] Chi2 algorithm - R

2016-11-23 Thread peter dalgaard
e is removed. The discretized data > frame still have 4 attributes discretized: if I correctly understood the > above papers, Sepal Length and Sepal Width should have been both > discretized in just one interval by Chi2 algorithm. > > I have posted a question here: http://stats.stackexcha

[R] Chi2 algorithm - R

2016-11-23 Thread Luke Skywalker
ave posted a question here: http://stats.stackexchange.com/questions/ 247499/why-does-not-r-chi2-algorithm-discretize-in-the- same-manner-as-in-the-paper-by-l?noredirect=1#comment470974_247499. Moreover, it's really hard to understand the cut points that Chi2 algorithm implemented in R makes. For example: r

Re: [R] chi2

2007-10-10 Thread Ted Harding
On 10-Oct-07 10:59:43, elyakhlifi mustapha wrote: > Hello, > I want to use the quantile function so I read the doc but I don't > understand with this > >> qchisq(seq(0.05,0.95,by=0.05),df=(length(don)-1)) > [1] 62667.11 62795.62 62882.42 62951.47 63010.74 63064.00 63113.39 > 63160.27 63205.65 632

Re: [R] chi2

2007-10-10 Thread Alberto Monteiro
Oops... Check... http://en.wikipedia.org/wiki/Chi-square_distribution The Chi-square distribution for _any_ df has mean = df and variance = 2df, so for large df, it's approximately a normal distribution with mean = df and sd = sqrt(2 df) [and not sqrt(df) as I wrote in a previous message that, pr

Re: [R] chi2

2007-10-10 Thread Alberto Monteiro
Elyakhlifi Mustapha wrote: > > I want to use the quantile function so I read the doc but I don't > understand with this > > > qchisq(seq(0.05,0.95,by=0.05),df=(length(don)-1)) > [1] 62667.11 62795.62 62882.42 62951.47 63010.74 63064.00 63113.39 > 63160.27 63205.65 63250.33 63295.04 63340.48 63

Re: [R] chi2

2007-10-10 Thread Peter Dalgaard
elyakhlifi mustapha wrote: > Hello, > I want to use the quantile function so I read the doc but I don't understand > with this > > >> qchisq(seq(0.05,0.95,by=0.05),df=(length(don)-1)) >> > [1] 62667.11 62795.62 62882.42 62951.47 63010.74 63064.00 63113.39 63160.27 > 63205.65 63250.33 632

Re: [R] chi2

2007-10-10 Thread Ben Bolker
elyakhlifi mustapha wrote: > > Hello, > I want to use the quantile function so I read the doc but I don't > understand with this > >> qchisq(seq(0.05,0.95,by=0.05),df=(length(don)-1)) > [1] 62667.11 62795.62 62882.42 62951.47 63010.74 63064.00 63113.39 > 63160.27 63205.65 63250.33 63295.04 63

[R] chi2

2007-10-10 Thread elyakhlifi mustapha
Hello, I want to use the quantile function so I read the doc but I don't understand with this > qchisq(seq(0.05,0.95,by=0.05),df=(length(don)-1)) [1] 62667.11 62795.62 62882.42 62951.47 63010.74 63064.00 63113.39 63160.27 63205.65 63250.33 63295.04 63340.48 63387.48 63437.03 63490.53 63550.14 6