[R] how to quit this mailing list

2009-03-27 Thread Jiang Peng
   Hi,

   I will end this mailbox and start a new one and i want to quit this  
list. I search the R official website with no answer.
thanks in advance 
[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] how to quit mailing list

2009-03-26 Thread Jiang Peng
  Dear list,
   I will not use this account later, so i have to quit this list.


I don't know how to quit this list,  I search the official website  
and find no answer.

thanks very much !!
[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] how to ignore errors

2008-12-01 Thread Jiang Peng

 Dear listers,

 Hi .

 I googled before I ask this question in case to avoid violating the  
list law. The question was proposed by somebody else but nobody  
gives a proper solution.


 How to ignore errors in a R loop? I have a R source file ,namely,  
test.r.

 I ran a loop in a command line

  for(i in 1 : 100 ) {source(test.r,echo =T ) }

 and I found that when test.r have some error the loop will stop, but  
test.r is just stochastically wrong,i.e., sometimes it works well if  
no bad values return.

 I want to know how to ignore such errors and let the loop continue.

thanks in advance.
___

Jiang Peng, Ph.D. Candidate
Department of Mathematics 
Antai college of Economics and Management
Shanghai Jiao Tong University
Address: Room 431, #3 Building, Xuhui Campus
E-mail: jp021 at sjtu.edu.cn
 jp021 at 126.com
MSN: jp021 at hotmail.com
iChat: mathfrog at mac.com
Mobile: +86-138 168 780 95

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] optimization problem

2008-11-24 Thread Jiang Peng

 Dear list,
  hi !
  I am a R beginner and I have  a function to optimize .

  alpha = argmin{ f(x,alpha) }

  I want alpha to be in [0,1].  Is there any function that can work?

  I use nlm() but i can't fix the domain of alpha.

  thanks in advance
___

Jiang Peng, Ph.D. Candidate
Department of Mathematics 
Antai college of Economics and Management
Shanghai Jiao Tong University
Address: Room 127, #3 Building, Xuhui Campus
E-mail: jp021 at sjtu.edu.cn
 jp021 at 126.com
MSN: jp021 at hotmail.com
iChat: mathfrog at mac.com
Mobile: +86-138 168 780 95

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] a nlm question

2008-11-03 Thread Jiang Peng

 Dear R listers,

I posted this problem several days ago but it seems nobody  
answered.


I use nlm to optimize a given function ,but it always generates  
the following warnings

   
  Error in nlm(foo, theta.start) : non-finite value supplied by 'nlm'
   
  I don't know why  ,can anybody give me some hints ?? thanks  in  
advance.


  regards .

___

Jiang Peng, Ph.D. Candidate
Department of mathematics 
Antai college of Economics and management
Shanghai Jiao Tong University
Address: Room 127, #3 Building, Xuhui Campus
E-mail: jp021 at sjtu.edu.cn
 jp021 at 126.com
MSN: jp021 at hotmail.com
iChat: mathfrog at mac.com
Mobile: +86-138 168 780 95

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] a nlm() question

2008-10-30 Thread Jiang Peng

 Dear R listers,
  I have a very annoying problem using nlm().
  I want to find the minimizer of my target function, if written in  
\LaTeX is
  f(\mu1,\mu2,\sigma1,\sigma2) = \sum_i^n( w_ig_t(z_i) ), where  
g_t(z) is a pdf of  bivariate normal distribution and z_i is my samples.
   I cannot get the estimation result generated by nlm(), and I got  
the following errors


  
Error in nlm(foo, theta.start, hessian = TRUE) :
  non-finite value supplied by 'nlm'
  

from time to time( If I ran the code second time , it does not have  
the error .) I am new to R so I don't know if there is any debug  
method of R code. i hope somebody can help me out .


Thanks in advance.


Jiang Peng, Ph.D. Candidate
Department of mathematics 
Antai college of Economics and management
Shanghai Jiao Tong University
Address: Room 127, #3 Building, Xuhui Campus
E-mail: jp021 at sjtu.edu.cn
 jp021 at 126.com
MSN: jp021 at hotmail.com
iChat: mathfrog at mac.com
Mobile: +86-138 168 780 95

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.