[R] ms?

gb@stat.umu.se gb at stat.umu.se
Mon Feb 28 17:12:41 CET 2000


On 28 Feb 2000, Douglas Bates wrote:

> gb at stat.umu.se writes:
> 
> > Is the Splus (4.0) function  ms  (or something equivalent)
> > available in some  R  package? I am trying to get an Splus
> > program to work with R. The piece of  Splus  code is
> > 
> > ms.fit<-ms(~t(Y-(X[,1] * alf + X[,2] * bet)^delta)%*%
> >            covariance.matrix.inverse%*%
> >            (Y-(X[,1] * alf + X[,2] * bet)^delta),
> >            sys.parent(0) , list(alf=5,bet=0.5), trace = F)
> 
> There are several different optimizers available in R now but none of
> them are exactly the same as the ms optimizer in S.  The nlm
> optimizer has been available for a long time.  Recently Brian Ripley
> added a variety of optimizers in the optim function.  Try
>  ?optim
> and
>  ?nlm
> 

Thanks for the answer; I just hoped for the _very_ simple 
solution. Guess I have to write a function to minimize.

Göran
----------------------------------------------------------
 Göran Broström                      tel: +46 90 786-5223
 Department of Statistics            fax: +46 90 786-6614
 Umeå University                                         
 SE-90187 Umeå, Sweden              email: gb at stat.umu.se
                                                        
 http://www.stat.umu.se/egna/gb    ftp://capa.stat.umu.se
----------------------------------------------------------

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list