[R] Re: R GUI for Linux?

2005-06-01 Thread Jose Claudio Faria
tart it and that one person (C/C++ programmer) coordinate the works. Emacs + ESS, in my opinion, is not adequate for beginning. Best regards, -- Jose Claudio Faria Brasil/Bahia/UESC/DCET Estatistica Experimental/Prof. Adjunto mails: [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAI

[R] Cluster of iris data set from Mahalanobis distances

2005-07-02 Thread Jose Claudio Faria
='', ylab='', col='blue') screen(2) plot(dendroC, main='Complete', sub='', xlab='', col='red') I'm not fouding how to make it in the CRAN documentation (Archives, packages: mclust, cluster, fpc and mva). Could help me?

[R] Help: Mahalanobis distances between 'Species' from iris

2005-07-06 Thread Jose Claudio Faria
w = 3.5, h = 6) split.screen(c(2, 1)) screen(1) plot(dendroS, main='Single', sub='', xlab='', ylab='', col='blue') screen(2) plot(dendroC, main='Complete', sub='', xlab='', col='red') # # --- End R script

[R] Tables: Invitation to make a collective package

2005-07-07 Thread Jose Claudio Faria
tbl) tbl <- tb.table(mdf, breaks='FD') print(tbl) tbl <- tb.table(mdf, k=4) print(tbl) tbl <- tb.table(mdf, k=10) print(tbl) levels(mdf$X1) tbl=tb.table(mdf, k=5, by='X1') length(tbl) names(tbl) print(tbl) tbl=tb.table(mdf, breaks='FD', by='X1') pri

[R] Help with Mahalanobis

2005-07-08 Thread Jose Claudio Faria
.dist(D), method='complete') win.graph(w = 3.5, h = 6) split.screen(c(2, 1)) screen(1) plot(dendroS, main='Single', sub='', xlab='', ylab='', col='blue') screen(2) plot(dendroC, main='Complete', sub='', xlab=''

Re: [R] Help with Mahalanobis

2005-07-09 Thread Jose Claudio Faria
it works nice. Could you help me about another (and simple) choice of analyze? JCFaria > On Fri, 8 Jul 2005, Jose Claudio Faria wrote: > > >>Dear R list, >> >>I'm trying to calculate Mahalanobis distances for 'Species' of 'iris' data >>a

[R] Help to make a specific matrix

2005-07-09 Thread Jose Claudio Faria
| 5 | 4 7 9 10 0 | || This question is related with the possible combinations of five objects two the two, i.e, C(5,2). Any help would be greatly appreciated. Regards, -- Jose Claudio Faria Brasil/Bahia/UESC/DCET Estatistica Experimental/Prof. Adjunto mails: [EMAIL PROTECTED] [EMAIL PROTECTED

Re: [R] Help to make a specific matrix

2005-07-09 Thread Jose Claudio Faria
Gabor Grothendieck wrote: > On 7/9/05, Jose Claudio Faria <[EMAIL PROTECTED]> wrote: > >>Dear R users, >> >>The solution is probably simple but I need someone to point me to it. >>How can I to generate a matrix from a numeric sequence of

Re: [R] Help with Mahalanobis

2005-07-10 Thread Jose Claudio Faria
)] = tmpD2 D2 = tmpMah + t(tmpMah) return(D2) } # # To try # D2M = D2Mah(iris[,1:4], iris[,5]) print(D2M) Thanks all for the complementary aid (specially to Gabor). Regards, -- Jose Claudio Faria Brasil/Bahia/UESC/DCET Estatistica Experimental/Prof. Adjunto mails: [EMAIL PROTECTED] [EMAIL

Re: [R] Help with Mahalanobis

2005-07-10 Thread Jose Claudio Faria
t; library(gtools) > nObjects = nrow(mds) > > ### changed part is next two statements > f <- function(a,b) mapply(function(a,b) > (mds[a,] - mds[b,])%*%InvS%*%(mds[a,] - mds[b,]), a,b) > > D2 <- outer(seq(nObjects), seq(nObjects), f) > } > > # >

Re: [R] Help with Mahalanobis

2005-07-10 Thread Jose Claudio Faria
mahalanobis(mds[a,],mds[b,],InvS,TRUE), a, b) > seq. <- seq(length = nrow(mds)) > names(seq.) <- levels(x) > D2 <- outer(seq., seq., f) > } > > # > # test > # > D2M4 = D2Mah4(iris[,1:4], iris[,5]) > print(D2M4) > > > > On 7/10/05, Jose Claud

Re: [R] Help: Mahalanobis distances between 'Species' from iris

2005-07-10 Thread Jose Claudio Faria
g with Mahalanobis > Distances" > > Tom > > >>-Original Message- >>From: [EMAIL PROTECTED] >>[mailto:[EMAIL PROTECTED] Behalf Of Jose >>Claudio Faria >>Sent: Thursday, 7 July 2005 5:29 AM >>To: r-help@stat.math.ethz.ch >>Sub

[R] An small suggestion for the R team

2005-08-04 Thread Jose Claudio Faria
sible to make a good highlighter with the first one. How to differentiating myValue: varOne = 100 varTwo = 50 myValue = varOne-varTwo from codes-deprecated, or ns-alt, for example. TIA, -- Jose Claudio Faria Brasil/Bahia/UESC/DCET Estatistica Experimental/Prof. Adjunto mails: [EMAIL PROTECTED

Re: [R] An small suggestion for the R team

2005-08-04 Thread Jose Claudio Faria
Gabor Grothendieck wrote: > On 8/4/05, Gabor Grothendieck <[EMAIL PROTECTED]> wrote: > >>On 8/4/05, Jose Claudio Faria <[EMAIL PROTECTED]> wrote: >> >>>Hi all, >>> >>>I would like to suggest that all R functions/etc like: >>>

Re: [R] An small suggestion for the R team

2005-08-04 Thread Jose Claudio Faria
Hi THomas, This is very a good information: thanks very much! So, I will just now to remove all from the highlighters. BTW, do you know if the signal minus is used in some function or reserved word? TIA, Jose Claudio Faria Thomas Lumley wrote: > On Thu, 4 Aug 2005, Jose Claudio Faria wr

Re: [R] An small suggestion for the R team

2005-08-04 Thread Jose Claudio Faria
Ok Duncan, Thank you very much for the tip! I will to remove all these identifiers. Regards, -- Jose Claudio Faria Duncan Murdoch wrote: > Jose Claudio Faria wrote: > >> Hi all, >> >> I would like to suggest that all R functions/etc like: >>codes-deprecated &g

[R] Doubt about Student t distribution simulation

2006-08-04 Thread Jose Claudio Faria
27;, font.lab= 2, font = 2) x = t curve(dt(x, df = n-1), add = T, col = "red", lwd = 2) Many thanks for any help, ___ Jose Claudio Faria Brasil/Bahia/Ilheus/UESC/DCET Estatística Experimental/Prof. Adjunto mails: [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED]

Re: [R] Doubt about Student t distribution simulation

2006-08-04 Thread Jose Claudio Faria
Dears John, Peter and Sundar, Many thanks for the quick answers!!! .. and sorry for all.. []s ___ Jose Claudio Faria Brasil/Bahia/Ilheus/UESC/DCET Estatística Experimental/Prof. Adjunto mails: [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] John Fox escreveu: > Dear J

[R] Small help with plot.mca

2006-10-05 Thread Jose Claudio Faria
Dear list, Please, how can I get all the levels of the same factor to have the same color and different color for each factor? Script: library(MASS) plot(mca(farms, abbrev = TRUE), rows=F) Thanks in advance, -- Jose Claudio Faria Brasil/Bahia/Ilheus/UESC/DCET Estatística Experimental/Prof

Re: [R] Block comments in R?

2006-10-06 Thread Jose Claudio Faria
Hi all, Indeed, block comment is more clean and elegant than line by line. If the R interpreter will recognizes it (I'm not sure if already recognizes), we will spend no more than few hours to make the syntax of the main editors compatible, isn't it? Regards, -- Jose Claudio Fa

Re: [R] linear contrasts with anova

2006-01-24 Thread Jose Claudio Faria
ntrasts = list(GROUP = make.contrasts(cmat))) sav = summary(av1, split = list(GROUP=list('1 vs. 3'=1, '1 vs. 2'=2))) sav detach(dF) # Another option attach(dF) #A B C fit.cont

[R] ANOVA: Help with SSQ decomposition and contrasts

2006-02-13 Thread Jose Claudio Faria
00 34.750 27.090 3.730e-06 # r2 vs (r1, r3) 1 ? ? ? ? # r1 vs r3 1 ? ? ? ? # Residuals 18 23.090 1.283 # TIA, -- Jose Claudio Faria Brasil/Bahia/UESC/DCET Estatistica Experimental/Prof. Adjunto mails: [EMAIL PROTECTED] [EM

[R] SSQ decomposition and contrasts with ANOVA

2006-02-15 Thread Jose Claudio Faria
1? ? ? ? a1 vs a3 1? ? ? ? ---- Residuals 18 23.090 1.283 Or, In this case, how can I to test these constrasts? Thank

Re: [R] Statistics with R

2005-08-30 Thread Jose Claudio Faria
Hi Vincent, Thanks for your good work! Best, -- Jose Claudio Faria Brasil/Bahia/UESC/DCET Estatistica Experimental/Prof. Adjunto mails: [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] tel: 73-3634.2779 __ R-help@stat.math.ethz.ch mailing

[R] help with one matrix

2005-09-10 Thread Jose Claudio Faria
5432- Thanks in advance, -- Jose Claudio Faria Brasil/Bahia/UESC/DCET Estatistica Experimental/Prof. Adjunto mails: [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] tel: 73-3634.2779 __ R-help@stat.math.ethz.ch mailing list

Re: [R] help with one matrix

2005-09-11 Thread Jose Claudio Faria
Gabor Grothendieck wrote: > On 9/10/05, Jose Claudio Faria <[EMAIL PROTECTED]> wrote: > >>Dear R-list, >> >>Could anybody tell me how to make one matrix as the below: >> >> [,1] [,2] [,3] [,4] [,5] [,6] >>[1,]-23456

[R] Help with a more flexible funtion for multiple comparision of means

2005-09-11 Thread Jose Claudio Faria
4.75 0.00 1.50 4.50 C 6.25 1.50 0.00 3.00 A 9.25 4.50 3.00 0.00 $Minimum Significative Differences - MSD DBCA D 0.00 3.83 4.93 5.48 B 3.83 0.00 3.83 4.68 C 4.93 3.83 0.00 4.04 A 5.48 4.68 4.04 0.00 $Replicates number D B C A D - 4:5 4:4 4:4 B 5:4 - 5:4 5:4 C 4:4 4:5

Re: [R] help with one matrix

2005-09-11 Thread Jose Claudio Faria
Hi Jim, Many thanks for the function! -- Jose Claudio Faria Brasil/Bahia/UESC/DCET Estatistica Experimental/Prof. Adjunto mails: [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] tel: 73-3634.2779 __ R-help@stat.math.ethz.ch mailing list

Re: [R] Help with a more flexible funtion for multiple comparisio n of means

2005-09-12 Thread Jose Claudio Faria
} > > > -- Jim Ok Jim, I know these limitations, but these tests exists. BTW, I am making this function for academic reasons and to learning how to make more advanced R functions. Thanks for all. Best, -- Jose Claudio Faria Brasil/Bahia/UESC/DCET Estatistica Experimental/Prof. Adjun

[R] Help with lattice, regressions and respective lines

2005-10-14 Thread Jose Claudio Faria
l 'po' or better, without line; # b) quadratic for 'pov' and 'ce' # Is it possible? Could somebody hel me? # I'm trying: library(lattice) attach(Df) Dfs=subset(Df, bra=='s', select=c(bra, em, tem, y)) Dfs xyplot(y ~ tem | em, data =

Re: [R] R (2.2.0), R-DCOM and Delphi

2005-11-07 Thread Jose Claudio Faria
r: 'VarArrayCreate' [Error] RCom.pas(226): Undeclared identifier: 'VarArrayCreate' [Error] RCom.pas(253): Undeclared identifier: 'VarType' [Error] RCom.pas(258): Undeclared identifier: 'VarArrayDimCount' [Error] RCom.pas(261): Undeclared identifier: 'Va

Re: [R] Axis Title in persp() Overlaps with Axis Labels

2006-07-26 Thread Jose Claudio Faria
Dear Kilian, Also give a looked at: http://wiki.r-project.org/rwiki/doku.php?id=graph_gallery:new-graphics You will see a new and very flexible function to 3D plot. Regards, __ Jose Claudio Faria Brasil/Bahia/Ilheus/UESC/DCET Estatística Experimental/Prof. Adjunto mails: [EMAIL PROTECTED

[R] Contingency tables from data.frames

2005-05-24 Thread Jose Claudio Faria
.frame(y1, y2, y3) #tbdf=er.table.df.br (mydf, breaks = 'Sturges', right=F) #tbdf=er.table.df.br (mydf, breaks = 'Scott', right=F) tbdf=er.table.df.br (mydf, breaks = 'FD', right=F) print(tbdf) #b) One of the problems y1=rnorm(100, 10, 1) y2=rnorm(100, 58, 4) y3=r

Re: [R] Contingency tables from data.frames

2005-05-25 Thread Jose Claudio Faria
Gabor Grothendieck wrote: On 5/24/05, Jose Claudio Faria <[EMAIL PROTECTED]> wrote: Dear list, I'm trying to do a set of generic functions do make contingency tables from data.frames. It is just running "nice" (I'm learning R), but I think it can be better.

Re: [R] Contingency tables from data.frames

2005-05-27 Thread Jose Claudio Faria
rges = k <- nclass.Sturges(x), Scott = k <- nclass.scott(x), FD = k <- nclass.FD(x)) tmp <- range(x) start <- tmp[1] - abs(tmp[2])/100 end <- tmp[2] + abs(tmp[2])/100 R <- end-start h <-