[R] help

2006-07-11 Thread Carlos Mauricio Cardeal Mendes
Please, is there any R-list about survival package ? Thanks Mauricio __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

[R] mca id numbers

2006-05-03 Thread Carlos Mauricio Cardeal Mendes
Is it possible to make disappear the id numbers from scatter.dudi (mc analysis) ? a - as.factor(c(1, 2, 3, 2, 1)) b - as.factor(c(3, 2, 3, 1, 1)) x - as.factor(c(1, 2, 2, 1, 3)) y - as.factor(c(2, 2, 3, 1, 1)) dat - data.frame(a=a, b=b,x=x,y=y) summary(dat) dat require(ade4) dat.acm -

[R] factors and mca

2006-05-02 Thread Carlos Mauricio Cardeal Mendes
Hi ! Wonder if I have this code below: a - c(1, 2, 3, 2, 1) b - c(3, 2, 3, 1, 1) d -as.factor(a) e -as.factor(b) table(d,e) is.factor(a) is.factor(b) is.factor(d) is.factor(e) de - factor(c(d,e)) is.factor(de) require(MASS) mca(de) I'd like to perform a correspondence analysis, but I can't

[R] sample matrix

2005-12-13 Thread Carlos Mauricio Cardeal Mendes
Please, I´d like to store this sample matrix as a new object. How can I do this ? pulse - c(67, 67, 68, 68, 68, 69, 69, 69, 69, 69, 70, 70, 70, 70, 71, 71, 72, 72, 73, 74) m - NULL x - 0 for (i in 1:5) { x - sample(pulse,3) m - mean(x) cat(x,m,\n) } Thanks, Mauricio

[R] sample matrix as a new object

2005-12-13 Thread Carlos Mauricio Cardeal Mendes
Please, I´d like to store this sample matrix as a new object. How can I do this ? pulse - c(67, 67, 68, 68, 68, 69, 69, 69, 69, 69, 70, 70, 70, 70, 71, 71, 72, 72, 73, 74) m - NULL x - 0 for (i in 1:5) { x - sample(pulse,3) m - mean(x) cat(x,m,\n) } Thanks, Mauricio

[R] correct rate

2005-10-26 Thread Carlos Mauricio Cardeal Mendes
Hi everone ! I know its not a epidemiologic or statistic list, but since I´m using R to solve related problems ... here it goes: This is a code to solve the rate problem, but the real question is: what´s the correct way to calculate the period rate (3 years period put together) The third

[R] npmc package

2005-10-19 Thread Carlos Mauricio Cardeal Mendes
Hi Does anyone know where is the package: npmc (Nonparametric Multiple Comparisons). I found the reference on R Site Search, but not the package itself on CRAN as suggested. Thanks Mauricio __ R-help@stat.math.ethz.ch mailing list

Re: [R] npmc package

2005-10-19 Thread Carlos Mauricio Cardeal Mendes
So, is there another package to substitute those functions described on ORPHANED npmc package ? Regards, Mauricio Brazil Uwe Ligges escreveu: Carlos Mauricio Cardeal Mendes wrote: Hi Does anyone know where is the package: npmc (Nonparametric Multiple Comparisons). I found

Re: [R] if() command

2005-09-14 Thread Carlos Mauricio Cardeal Mendes
Ok Petr, I run your suggestion and I got this message: age-sample(seq(10,50,10), 20, replace=T) if (age =10) {group - 1} else if (age 10 age = 20) {group - 2} else {group - 3} Warning message: the condition has length 1 and only the first element will be used in: if (age = 10) { What

Re: [R] if() command

2005-09-14 Thread Carlos Mauricio Cardeal Mendes
Hello reid ! About your third explanation, could you please write the complete code including that option: a loop ? Forgiveme, I'm trying to learn R and my mind is full of other statistical program syntax. And I'd like very very much to improve my knowledge using R and maybe contribute to

[R] Proportions again

2004-02-29 Thread Carlos Mauricio Cardeal Mendes
Hello. I asked before and it was great, cause as a beginner I learned a lot. But, if I have this in R (1 and 2 are codes for sex): sex-c(1,2,2,1,1,2,2,2) sex [1] 1 2 2 1 1 2 2 2 I´d like to obtain the proportion according to sex.So I type: prop.table(sex) [1] 0.07692308 0.15384615