[R] Triangular matrix upper to down

2011-09-26 Thread m.marcinmichal
Hi, suppose that we have a triangular upper matrix A test - matrix(ncol = 4, nrow = 4) test[1, ] - c(NA,1,1,1) test[2, ] - c(NA,NA,1,1) test[3, ] - c(NA,NA,NA,1) test[4, ] - c(NA,NA,NA,NA) I know how quickly set diagonal value diag(test) - 1. But how quickly set down value i.e. matrix is

Re: [R] Triangular matrix upper to down

2011-09-26 Thread m.marcinmichal
Mhy, I think that this solution It doesn't work with odd dimension. Suppose we have a reference matrix 13x13 (near i present a table format i.e save by write.table). This matrix name a response2. V1 V2 V3 V4 V5 V6 V7 V8 V9 V10 V11 V12 V13 1 0 1.4142135623731 1 1.73205080756888 1.4142135623731

Re: [R] Triangular matrix upper to down

2011-09-26 Thread m.marcinmichal
Ok, thanks this solution test[lower.tri(test)] - t(test)[lower.tri(test)] works perfectly well :) Thanks Best marcin M. -- View this message in context: http://r.789695.n4.nabble.com/Triangular-matrix-upper-to-down-tp3845107p3845352.html Sent from the R help mailing list archive at

[R] [statEt] Rmpi problem in Eclipse statEt

2011-08-17 Thread m.marcinmichal
Hi, I try use Rmpi package to my compute. In my work I'm using eclipse version 3.6.2 and statEt version 0.10.0 (launch Rterm or RJ). Actually I observed strange behavior, when I try loading Rmpi directly I don't have any problem i.e.: library(Rmpi) mpi.spawn.Rslaves() 8 slaves are spawned

Re: [R] [statEt] Rmpi problem in Eclipse statEt

2011-08-17 Thread m.marcinmichal
I try loading Rmpi directly I don't have any problem i.e. I loading Rmpi by R x64 2.12.2 (GUI) -- View this message in context: http://r.789695.n4.nabble.com/statEt-Rmpi-problem-in-Eclipse-statEt-tp3750738p3750743.html Sent from the R help mailing list archive at Nabble.com.

Re: [R] Removing all duplicate row except by one

2011-08-12 Thread m.marcinmichal
Hi, thanks for response it's work perfect. Yes 't' is not good wariable it will be 'test', my wrong. Best Marcin M. -- View this message in context: http://r.789695.n4.nabble.com/Removing-all-duplicate-row-except-by-one-tp3736949p3738132.html Sent from the R help mailing list archive at

[R] Removing all duplicate row except by one

2011-08-11 Thread m.marcinmichal
Hi, It's my problem, supppose that we have a data.frame: t a b c 1 1 1 1 2 0 1 1 3 1 1 1 4 0 0 0 5 1 0 1 6 0 1 0 7 1 1 1 8 0 1 0 I need extract duplicat row i.e i nedd frame like this a b c 3 1 1 1 8 0 1 0 I try use subset(t, duplicated(t)) and t[duplicated(t), ] but this command return

[R] Aggregate data and table function

2011-07-16 Thread m.marcinmichal
Hi, suppose we have a data in data.frame like a: data id q1 q2 q3 c 1 1 0 0 1 a 2 2 0 0 1 b 3 3 1 0 0 b 4 4 0 1 0 a I need from this data receive cross validation table like a a b -- classified as 2 0 | a = a 1 1 | b = b Plus i need have information about 'id' i.e I

[R] Naive Bayes Classifier

2011-07-07 Thread m.marcinmichal
Hi, Currently I testing the packets that contain built-in features for classification. Actually I looked packages such as: e1071, Klar, Caret, CORElearn. However, from what I noticed when building a naive Bayesian classifier, that they package use of the finite mixture model to estimate P (x | C)

Re: [R] Kolmogorov-Smirnov test

2011-05-01 Thread m.marcinmichal
Hi, many thanks for helpful answer. Best Marcin M.-- View this message in context: http://r.789695.n4.nabble.com/Kolmogorov-Smirnov-test-tp3479506p3488364.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing

Re: [R] Kolmogorov-Smirnov test

2011-04-28 Thread m.marcinmichal
Hi, thanks for response. The Kolmogorov-Smirnov test is designed for distributions on continuous variable, not discrete like the poisson. That is why you are getting some of your warnings. I read in Fitting distributions whith R Vito Ricci page 19 that: ... Kolmogorov-Smirnov test is

Re: [R] Kolmogorov-Smirnov test

2011-04-28 Thread m.marcinmichal
This test SnowsPenultimateNormalityTest() is great :) Best -- View this message in context: http://r.789695.n4.nabble.com/Kolmogorov-Smirnov-test-tp3479506p3482401.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org

[R] Kolmogorov-Smirnov test

2011-04-27 Thread m.marcinmichal
Hi, I have a problem with Kolmogorov-Smirnov test fit. I try fit distribution to my data. Actualy I create two test: - # First Kolmogorov-Smirnov Tests fit - # Second Kolmogorov-Smirnov Tests fit see below. This two test return difrent result and i don't know which is properly. Which result is