Re: [R] Higher Dimensional Matrices

2006-12-25 Thread downunder
Hi Bill. Thanks for your extensive hints especially with arrays. That solves my problem now and I am also able to control for every combination of variables. Have a merry christmas. lars x - read.table(C:/.dat) dim(x) #200x10 a - matrix(0,200,10) for (i in 1:10) a[,i] -

[R] Higher Dimensional Matrices

2006-12-24 Thread downunder
Hi all. I want to calculate partial correlations while controlling for one or more variables. That works already fine when I control for example just for x[,1] and x[,2] that gives me one single correlation matrix and i have to to it for x [,1]...x[,10]. That would give me out 10 matrices.

Re: [R] Replacing values

2006-12-19 Thread downunder
Hi Marc, thanks a lot. Your hint wiht logical conditions helped me already. Problem is I am working with SAS beside of R. In SAS the import of data and data manipulation is not that easy, thats why I try to code the data in the right format. So Thanks a lot for your hints. greetings lars --

Re: [R] Replacing values

2006-12-19 Thread downunder
Hi John, your example works also fine. Thats what I am looking for. Thanks so far. Greetings lars -- View this message in context: http://www.nabble.com/-R--Replacing-values-tf2841687.html#a7967398 Sent from the R help mailing list archive at Nabble.com.

[R] Replacing values

2006-12-18 Thread downunder
Hi all, I have to recode some values in a dataset. for example changing all zeros to . or 999 would be also ok. does anybody know how to do this? thanks in advance. lars -- View this message in context: http://www.nabble.com/-R--Replacing-values-tf2841687.html#a7934402 Sent from the R help

[R] advanced plotting

2006-11-09 Thread downunder
!urgent! Hi all. I am facing a problem plotting a indicatormatrix to visualize the pattern. Matrix consist from 1 and 0. for example x - matrix(c(0,0,1,0, 1,1,1,1, 0,0,0,1, 1,0,1,1), nrow = 4, ncol=4) an i want to have a plot like | . | . . . . | . | . . .

Re: [R] advanced plotting

2006-11-09 Thread downunder
Hi Romain, this looks already very nice. thanks for your help. lars Romain Francois wrote: downunder wrote: !urgent! Hi all. I am facing a problem plotting a indicatormatrix to visualize the pattern. Matrix consist from 1's and 0's. for example x - matrix(c(0,0,1,0, 1,1,1,1, 0,0,0,1

[R] chi.test in R

2006-11-07 Thread downunder
Hi all. I need some help computing multidimensional pvalues of a multivariate data set. chisq.test(x[,1],x[,2])$p.value i need a command or loop that creates me a vector or a matrix (each variabe with each variable) would be even better for the p.values of the variables of a data set.

[R] chisq test with for loop

2006-11-07 Thread downunder
Hi all. i am desperating. i need a matrix of p.values from an chi square test. i had it already work but than my computer collapsed when taking the whole data set 800x260 into account. i am sure it looked like this but it doesn't work now. can anybody help me? thanks in advance.

Re: [R] chisq test with for loop

2006-11-07 Thread downunder
I have it work. so far thanks for your help. lars working code z-matrix(0,d,d) z for (i in 1:d) for (j in 1:d) z[[i,j]]-chisq.test(x[,i], x[,j])$p.value round(z,3) downunder wrote: Hi all. i am desperating. i need a matrix of p.values from an chi square test. i had it already work

[R] EM Algorthm help library norm

2006-10-17 Thread downunder
Hello, i need some help concerning the library norm. i habe to impute some missing values using the em algorithm. The help offered for the library doesn't really help me, maybe somebody already worked on em algorithm or multiple imputation. some fictive Data x1 x2 50 60 24 . 26 20 87 . 21