[R] Non-Linear Regression on a Matrix

apjaworski@mmm.com apjaworski at mmm.com
Wed Nov 17 03:56:13 CET 2004

If your "non-linear function (A, B)" is parametric nls should do it for
you.  If you have R version 2 (perhaps even 1.9) do ?nls to see the help
page.  Older versions of R require library(nls) first.

Hope this helps,


Andy Jaworski
Process Laboratory
3M Corporate Research Laboratory
E-mail: apjaworski at mmm.com
Tel:  (651) 733-6092
Fax:  (651) 736-3122

             Diana Abdueva                                                 
             <diana.abdueva at gm                                             
             ail.com>                                                   To 
             Sent by:                  r-help at stat.math.ethz.ch            
             r-help-bounces at st                                          cc 
                                       [R] Non-Linear Regression on a      
             11/16/2004 08:33          Matrix                              
             Please respond to                                             
               Diana Abdueva                                               
             <diana.abdueva at gm                                             

Hi, I'm terribly sorry for submitting my primitive question, I'm a
beginner in R and was hoping to get some help re: non-linear fit.

I have a 2D data with the following structure:

A     B        C
1      1      111
1      2      121
1      3      131
2      1      141
2      2      151
2      3      161
3      1      171
3      2      181
3      3      191

I'm trying to fit C = non-linear function (A,B). I was wondering if
there's a package that would save my time of doing direct least square

Thank you,

R-help at stat.math.ethz.ch mailing list
PLEASE do read the posting guide!

More information about the R-help mailing list