[R] RDCOMServer

2003-06-01 Thread Chunlou Yung
Hi there, I downloaded RDCOMServer and the related packages from Omegahat. Tried their "R.Evaluator" example. But failed to invoke any method from the client side. When I looked at R.Evaluator from OLE View (some Microsoft development tool for browsing all the OLEs), I got the following error mess

[R] compositional data: percent values sum up to 1

2003-06-01 Thread Christoph Lehmann
again, under another subject: sorry, maybe an all too trivial question. But we have power data from J frequency spectra and to have the same range for the data of all our subjects, we just transformed them into % values, pseudo-code: power[i,j]=power[i,j]/sum(power[i,1:J]) of course, now we have

Re: [R] function to populate a matrix based on a lookup to anothermatrix ?

2003-06-01 Thread peter leonard
That worked perfect. Thanks for the fast response. Peter Leonard From: Uwe Ligges <[EMAIL PROTECTED]> To: peter leonard <[EMAIL PROTECTED]> CC: [EMAIL PROTECTED] Subject: Re: [R] function to populate a matrix based on a lookup to another matrix ? Date: Sat, 31 May 2003 17:58:27 +0200 peter leo

Re: [R] function to populate a matrix based on a lookup toanother matrix ?

2003-06-01 Thread Gabor Grothendieck
peter leonard wrote: > I have a 4x4 matrix named 'lookup' with the following values: [...] > I then create a new empty matrix named 'dd' with specfic row and col > names : > > 1 3 4 33 1 > 1 NA NA NA NA NA NA > 2 NA NA NA NA NA NA > 3 NA NA NA NA NA NA > 4 NA NA NA NA NA NA > 3 N

[R] logistic regression (weights)

2003-06-01 Thread Edoardo M Airoldi
hi all, I am fitting a logistic regression model on binary data. I care about the fitted probabilities, so I am not worried about infinite (or non-existent) MLEs. I use: > glm(Y~., data=X, weights=wgt, family=binomial(link=logit), maxit=250) I understand the three ways to fit model, and in

[R] logistic regression

2003-06-01 Thread Edoardo M Airoldi
hi all, I am fitting a logistic regression model on binary data. I care about the fitted probabilities, so I am not worried about infinite (or non-existent) MLEs. I use: > glm(Y~., data=X, weights=wgt, family=binomial(link=logit), maxit=250) I understand the three ways to fit model, and in

Re: [R] Need help installing qtoolbox

2003-06-01 Thread Joe Conway
Toby Popenfoose wrote: Is there another control chart library for R that I should be trying instead? I looked around and could not find an R package for Shewhart control charts. I'll post the function I wrote for my own needs, but note that I am not a statistician, nor am I particularly experienc

Re: [R] parse on left hand side of R assignment

2003-06-01 Thread Prof Brian Ripley
On Sat, 31 May 2003, Paul E. Johnson wrote: > I keep finding myself in a situation where I want to calculate a > variable name and then use it on the left hand side of an assignment. > For example > > iteration <- 1 > varName <- paste("run",iteration,sep="") > myList$parse(text=varName) <- aCol

Re: [R] parse on left hand side of R assignment

2003-06-01 Thread John Fox
At 11:57 AM 5/31/2003 -0500, Paul E. Johnson wrote: I keep finding myself in a situation where I want to calculate a variable name and then use it on the left hand side of an assignment. For example iteration <- 1 varName <- paste("run",iteration,sep="") myList$parse(text=varName) <- aColumn I wa

Re: [R] parse on left hand side of R assignment

2003-06-01 Thread Spencer Graves
Have you considered the following: > myList <- list() > iteration <- 1 > varName <- paste("run",iteration,sep="") > myList[[varName]] <- "aColumn" > myList $run1 [1] "aColumn" hth. spencer graves Paul E. Johnson wrote: I keep finding myself in a situation where I want to calculate a variable na

Re: [R] parse on left hand side of R assignment

2003-06-01 Thread Uwe Ligges
Paul E. Johnson wrote: I keep finding myself in a situation where I want to calculate a variable name and then use it on the left hand side of an assignment. For example iteration <- 1 varName <- paste("run",iteration,sep="") myList$parse(text=varName) <- aColumn I want to take some existing var

[R] parse on left hand side of R assignment

2003-06-01 Thread Paul E. Johnson
I keep finding myself in a situation where I want to calculate a variable name and then use it on the left hand side of an assignment. For example iteration <- 1 varName <- paste("run",iteration,sep="") myList$parse(text=varName) <- aColumn I want to take some existing variable "aColumn" and us

Re: [R] function to populate a matrix based on a lookup to anothermatrix ?

2003-06-01 Thread Uwe Ligges
peter leonard wrote: Hi, This is a beginner R question. I have a 4x4 matrix named 'lookup' with the following values: 1 2 3 4 1 0.00 2.828427 5.656854 8.485281 2 2.828427 0.00 2.828427 5.656854 3 5.656854 2.828427 0.00 2.828427 4 8.485281 5

[R] function to populate a matrix based on a lookup to anothermatrix ?

2003-06-01 Thread peter leonard
Hi, This is a beginner R question. I have a 4x4 matrix named 'lookup' with the following values: 1 2 3 4 1 0.00 2.828427 5.656854 8.485281 2 2.828427 0.00 2.828427 5.656854 3 5.656854 2.828427 0.00 2.828427 4 8.485281 5.656854 2.828427 0.00