[R] How to filter a data frame with user defined function?

2015-01-27 Thread Monnand
a[filtername(data),] [1] id name <0 rows> (or 0-length row.names) I would be appreciate if anyone could help. Thank you! -Monnand [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see h

Re: [R] two-sample KS test: data becomes significantly different after normalization

2015-01-15 Thread Monnand
Thank you, Chris and Martin! On Wed Jan 14 2015 at 7:31:12 AM Andrews, Chris wrote: > Your definition of p-value is not correct. See, for example, > http://en.wikipedia.org/wiki/P-value#Misunderstandings > > -Original Message----- > From: Monnand [mailto:monn...@gm

Re: [R] two-sample KS test: data becomes significantly different after normalization

2015-01-13 Thread Monnand
ittle people uses p-value as a "true" probability. e.g. normally, people will not multiply or add p-values to get the probability that two independent null hypothesis are both true or one of them is true. I had this question for very long time. -Monnand On Tue Jan 13 2015 at 2:47:30 PM

Re: [R] two-sample KS test: data becomes significantly different after normalization

2015-01-12 Thread Monnand
KL diverge, but it only gives me some number but does not tell me how large the distance is should be considered as significantly different. Regards, -Monnand On Mon, Jan 12, 2015 at 9:32 AM, Andrews, Chris wrote: > > The main issue is that the original distributions are the same, you shi

[R] two-sample KS test: data becomes significantly different after normalization

2015-01-11 Thread Monnand
.html ), but I got the same result. Could anyone help me to explain why it happened? Also, any suggestion about the hypothesis testing on normalized data? (The data I have right now is simulated data. In real world, I cannot get raw data, but only normalized one.) Regards, -Monnand

Re: [R] How to group by then count?

2015-01-06 Thread Monnand
ple(letters, 1e6, replace=TRUE) ) > > > One of the seminal books on the S language is John M Chambers' Programming > with Data -- and I would emphasize the "with Data" part of that title. > > -- > > Don MacQueen > > Lawrence Livermore National Laborat

[R] How to group by then count?

2015-01-04 Thread Monnand
ements hash table. However, installing a package simple for a hash table is really annoying for me. I did find aggregate and other functions which operates on data frames. But in my case, it is a simple vector. Converting it to a data frame may be not desirable. (Or is it?) Could