Re: [R] anova.mlm for single model (one-way repeated measured anova)

2006-08-12 Thread Prof Brian Ripley
On Sat, 12 Aug 2006, takahashi kohske wrote: > Dear list members: > > I'd like to one-way repeated measured anova by using mlm. > I'm using R-2.3.1 and my code is: > > dat<-matrix( c(9,7,8,8,12,11,8,13, 6,5,6,3,6,7,10,9, >10,13,8,13,12,14,14,16, 9,11,13,14,16,12,15,14), >

Re: [R] Colour-coding intervals on a line

2006-08-12 Thread Jim Lemon
Sara-Jane Dunn wrote: > Hi, > > This is a simple version of something that I am trying to do. If I can > sort the problem basically, I figure I should be able to sort it for the > program I'm writing (which would take longer to explain). > > I need to know if there is any way of using different

Re: [R] tkinsert

2006-08-12 Thread Jarimatti Valkonen
claude.josse wrote: > But in my text window I have : > > x=2a=mean(c(1,2,3)) > > I d'like to have something like: > x=2 > a=mean(c(1,2,3)) AFAIK you need to separate lines with a newline character ('\n'). Put a 'tkinsert(txt, "end", "\n")' between the insert commands. Or append each line wi

Re: [R] between-within anova: aov and lme

2006-08-12 Thread Spencer Graves
To understand why this works, you need to understand the math in a more general formulation. Ordinary least squares can be written in matrix / vector notation as follows: y = X %*% b + e, where y and e are N x 1 vectors, X is an N x k matrix, and b is a k x 1 vector. In t

Re: [R] Geometrical Interpretation of Eigen value and Eigen vector

2006-08-12 Thread Dirk Enzmann
Arun, have a look at: http://149.170.199.144/multivar/eigen.htm HTH, Dirk "Arun Kumar Saha" <[EMAIL PROTECTED]> wrote: > It is not a R related problem rather than statistical/mathematical. However > I am posting this query hoping that anyone can help me on this matter. My > problem is to get t

[R] tkinsert

2006-08-12 Thread julie7\.josse
Dear List, I'm looking for some informations about the function "tkinsert()". I d'like to write lot of command in my text window and after to evaluate it with a button "Submit" for example, but i have some problems: here a exemple of my code: 1) My first problem tt=tktoplevel() txt=tktext(tt,h

[R] adding columns to a table after a loop

2006-08-12 Thread Albert Picado
Dear list, I am trying to find the way to add columns to a table (or a matrix) after a loop. The result of this loop is an array and I would like to get all the results in a single table once the loop is finish. I have reproduced a simplified example below: > a<- 1 > b <- matrix() > while (a <= 4

[R] Changing R network connections

2006-08-12 Thread Alexandre Fabrice Letimier
Dear all, I have some difficulties to get R to download the various packages. It seems that it's a problem of the network that I'm on. I would need to configure R so that I can put the proxy address and the port of the network that I'm on. Can anyone explain to me how to change these in R. I've

Re: [R] RE : tcltk library on linux

2006-08-12 Thread Adrian Dusa
On Friday 11 August 2006 10:31, Yohan CHOUKROUN wrote: > Thank you for your answer but I already use the .deb package. > Also I have compiled the source code, but it is the same result... > I have already the same error.. > I 'm going to be crazy ;-) > Has anyone got the same problem (and found the

Re: [R] adding columns to a table after a loop

2006-08-12 Thread Uwe Ligges
Albert Picado wrote: > Dear list, > > I am trying to find the way to add columns to a table > (or a matrix) after a loop. The result of this loop is > an array and I would like to get all the results in a > single table once the loop is finish. I have > reproduced a simplified example below: >

Re: [R] Changing R network connections

2006-08-12 Thread Prof Brian Ripley
Since you mention 'preferences', it seems you might be using Windows: the information you require is in the rw-FAQ. Since the posting guide asked you to state your platform and read the relevant FAQ, that is the place to start: see the footer below. On Fri, 11 Aug 2006, Alexandre Fabrice Letimi

[R] Re : adding columns to a table after a loop

2006-08-12 Thread Albert Picado
Dear Uwe, Thanks for your answer. I have been trying your suggestion but I haven't been able to solve my problem as I may have simplified in excess my example. The real situation is actually much similar to the following: a<-1 b<-1 i<-1 pvalue<-matrix() while(a<=4) { while(b<=10){ p

Re: [R] Re : adding columns to a table after a loop

2006-08-12 Thread Uwe Ligges
Albert Picado wrote: > Dear Uwe, > > Thanks for your answer. I have been trying your suggestion but I haven't been > able to solve my problem as I may have simplified in excess my example. The > real situation is actually much similar to the following: > > a<-1 > b<-1 > i<-1 > pvalue<-matri

Re: [R] Re : adding columns to a table after a loop

2006-08-12 Thread John Kane
--- Albert Picado <[EMAIL PROTECTED]> wrote: Albert > Dear Uwe, > > Thanks for your answer. clip > De : Uwe Ligges <[EMAIL PROTECTED]> > � : Albert Picado <[EMAIL PROTECTED]> > Cc : r-help@stat.math.ethz.ch > Envoy� le : Samedi, 12 Ao�t 2006, 3h57mn 16s > Objet : Re: [R] adding c

[R] lasso for variable selection

2006-08-12 Thread zubin
Attended JSM last week and Friedman mentioned the use of LASSO for variable selection (he uses it for rules ensembles). I am an econometrician and not familiar with, i started running the examples in R this week and you get to the plots section of the LARS package. Plots of beta/max(beta) v

Re: [R] lasso for variable selection

2006-08-12 Thread Wensui Liu
Zubin, my understanding about lasso is that it is a restricted version of regression, where minimization of sse subject to sum(abs(beta)) < upper limit such that for unimportant feature, its beta will be restricted by ZERO. the whole game of lasso is to find the proper upper limit. I think in lass

[R] proc standardize & data frame x and y

2006-08-12 Thread zubin
Hello! i know these are basic but i cannot seem to find the answer thru my searches.. 1) Can someone recommend an equivalent to SAS PROC Standardize in R? I am in need to frequently standardize a data frame, with z-scores, or squash to 0-1 scale - is there a slick function or package someone

Re: [R] proc standardize & data frame x and y

2006-08-12 Thread Wensui Liu
for proc standardzize, check ?scale On 8/12/06, zubin <[EMAIL PROTECTED]> wrote: > > Hello! i know these are basic but i cannot seem to find the answer thru > my searches.. > > 1) Can someone recommend an equivalent to SAS PROC Standardize in R? I > am in need to frequently standardize a data

Re: [R] GARCH(1,1) optimization with R

2006-08-12 Thread Spencer Graves
RSiteSearch("garch", "functions") produced 21 hits, the first 10 of which identified 'garch'-type capabilities in packages 'tseries', 'fSeries' and 'fOptions'. Hope this helps. Spencer Graves p.s. You might get better and quicker help from this listserve if your p

Re: [R] proc standardize & data frame x and y

2006-08-12 Thread Wensui Liu
zubin, for your second question: supposed you have x1 and x2 and want to combine them in a matrix X in a data frame called data, try the following code: X<-matrix(1:10, ncol = 2, dimnames = list(NULL, c("x1", "x2"))); class(X) class(X)<-"AsIs"; class(X) data<-data.frame(X); summary(data); On