[R] Parallel computing in Splus?

2004-12-11 Thread Lun Li
Dear All,

Does anyone know if there is any function or package provides parallel computing
in splus?


Thanks in advance.


Lun

__
[EMAIL PROTECTED] 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] A logical comparison between two character strings in R

2003-08-21 Thread Lun Li
Dear All,

Does anyone know how to compare two character strings in R?  For eample, how 
to compare A-1-B with cc-1 in logical ?

Cheers,


Lun Li

__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help


[R] A logical comparison between two character strings in R

2003-08-21 Thread Lun Li
Dear All,

Can anyone know how to compare two character strings in R?  For eample, how to 
compare A-1-B with cc-1 in logical ?

Cheers,


Lun Li

__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help


Re: [R] A logical comparison between two character strings in R

2003-08-21 Thread Lun Li
Thanks.

But, my question is:

 pro.name[1]
   V1
1 B-29BT3
 temp.name[1]
V1
1 A-1H
 if(tem.name[1]==pro.name[1]){cat(ok)}

Error in Ops.factor(left, right) : Level sets of factors are different

How to compare them?


Lun



Quoting Peter Dalgaard BSA [EMAIL PROTECTED]:

 Lun Li [EMAIL PROTECTED] writes:
 
  Dear All,
  
  Does anyone know how to compare two character strings in R?  For
 eample, how 
  to compare A-1-B with cc-1 in logical ?
 
 Ehhh... Is it this that you want?
 
   A-1-B == cc-1
 [1] FALSE
   A-1-B = cc-1
 [1] TRUE
   A-1-B  cc-1
 [1] FALSE
   d-1-B  cc-1
 [1] TRUE
 
 
 -- 
O__   Peter Dalgaard Blegdamsvej 3  
   c/ /'_ --- Dept. of Biostatistics 2200 Cph. N   
  (*) \(*) -- University of Copenhagen   Denmark  Ph: (+45) 35327918
 ~~ - ([EMAIL PROTECTED]) FAX: (+45) 35327907


__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help


[R] How to send a function to a slave from master and let the slaverun using rmpi?

2003-07-02 Thread Lun Li
Dear All,

Can anyone help in how to send a function to a slave (not all slaves)from master 
and let the slave run using rmpi?

Thanks.


Lun Li

__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help


[R] Rmpi: send a function to a slave from master and let it run?

2003-06-30 Thread lun li
Hello All,

Can send different functions  to different slaves from master and let each 
slave run itself function using Rmpi? From the Rmpi version 0.4.2, I know 
how to send a function to all slaves and let slave run the function.  
mpi.send.Robj may send a function to a slave, but how let the salve run the 
function?

Thanks.

Lun

__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help


[R] Parallel programming using R

2003-03-04 Thread lun li
Dear All,

For my regression problem(thousand dependents by thousand predictors by 
hundred months observations), I prefer to  parallel computation in R.  Is it 
possible to parallel programming using R as using C and Fortran?

Cheers,

Lun

__
[EMAIL PROTECTED] mailing list
http://www.stat.math.ethz.ch/mailman/listinfo/r-help


Re: [R] Parallel programming using R

2003-03-04 Thread lun li
Thank you very much for  the information of  RPvm and RMPI packages. I got 
them.

Best regards,

Lun






From: M.Kondrin [EMAIL PROTECTED]
To: lun li [EMAIL PROTECTED]
CC: R-Help [EMAIL PROTECTED]
Subject: Re: [R] Parallel programming using R
Date: Tue, 04 Mar 2003 14:25:02 -0800
lun li wrote:
Dear All,

For my regression problem(thousand dependents by thousand predictors by 
hundred months observations), I prefer to  parallel computation in R.  Is 
it possible to parallel programming using R as using C and Fortran?

Cheers,

Lun

__
[EMAIL PROTECTED] mailing list
http://www.stat.math.ethz.ch/mailman/listinfo/r-help
Look up  RPvm and RMPI packages

Good luck ...

__
[EMAIL PROTECTED] mailing list
http://www.stat.math.ethz.ch/mailman/listinfo/r-help


Re: [R] Function update problem

2003-02-14 Thread lun li
Dear Professor Ripley,

Thank you very much for your help.

I tested the idea by form - substitute(.~.+x[,i], list(i=i)), however the 
problem still is there.  In order to automate model selection, I prefer to 
use update. My regression problem is to test significant predictors from  
several hundred candidates using forward regression by BIC criteria. For 
each loop, first to find one with maximum BIC and then to update lm to get 
a new model.  So, it is convenient to useupdate function. I would be 
grateful if you could still help.

In addition, I tried the way update+add1 to my question.  But, new problem 
is  update.default(model, . ~ . + x) need an object with call component, 
help? The code is:

model-add1(model,.~.+form)
model.new-update(model,.~.+x)


With best regards,


Lun





You can use substitute: something like (untested)

for(i in 1:100){
form - substitute(.~.+x[,i], list(i=i))
model - update(model, form)
## do something useful in here
}
and you do not need to update unchanged arguments!

However, why are you rewriting add1.default, when there is add1.lm?

On Thu, 13 Feb 2003, lun li wrote:

 Dear all,

 I am trying an automatic model selection for a multiple linear 
regression
 using function lm and update. But, I meet a problem when using update. 
The
 problem is the function update can not update when variables as a 
vector(for
 example,x is a matrix with 100 regression variables). The code is as 
below:

model-lm(y~x1,singular.ok=T,na.action=na.omit)
for(i in 1:100){
model-update(model,.~.+x[,i],singular.ok=T,na.action=na.omit)}

 If the above code is represented as below, I can get the correct result.
 However, I must use the loops.

 model-lm(y~x1,singular.ok=T,na.action=na.omit)
 model-update(model,.~.+x[,1],singular.ok=T,na.action=na.omit)
 model-update(model,.~.+x[,2],singular.ok=T,na.action=na.omit)
 ..
 model-update(model,.~.+x[,100],singular.ok=T,na.action=na.omit)

--
Brian D. Ripley,  [EMAIL PROTECTED]
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford, Tel:  +44 1865 272861 (self)
1 South Parks Road, +44 1865 272866 (PA)
Oxford OX1 3TG, UKFax:  +44 1865 272595

__
[EMAIL PROTECTED] mailing list
http://www.stat.math.ethz.ch/mailman/listinfo/r-help

- End forwarded message -



Lun Li
Department of Geology and Geophysics
The University of Edinburgh
Grant InstituteTel. +44(0)131 650 7339
King's Buildings   Fax. +44(0)131 668 3184
West Mains Road			   E-mail:[EMAIL PROTECTED]
Edinburgh EH9 3JW
UK

__
[EMAIL PROTECTED] mailing list
http://www.stat.math.ethz.ch/mailman/listinfo/r-help