[R] fit a 2-variables function to data

Petr PIKAL petr.pikal at precheza.cz
Fri Aug 5 15:03:41 CEST 2011


> 
> Thanks Petr for your response.
>  
> The function I wnat to fit is
>  
> y = (k1 * v2_Kd *p1^v2_h) / ( (v2_Kd^v2_h) + p1^v2_h ) ) * ( 1/(1 + (p6/
> v5_Kd)^v5_h) ) 
> where p1 and p2 are the independent variables. 
>  
> v2_K2, v2_h, v5_Kd and v5_h are the parameters I have to estimate.

In that case you should look to 
?nls or maybe ?optim

Regards
Petr

>  
> Paola.
> 
> 
>  
> On Fri, Aug 5, 2011 at 2:55 PM, Petr PIKAL <petr.pikal at precheza.cz> 
wrote:
> Hi
> >
> > Dearl all,
> >
> > I have to fit a function
> >
> > y = f(x1, x2)
> > to data experiemntal data describing the measured behavior of y.
> >
> > x1 and x2 are the independent variables.
> >
> > Could you suggest me wich R package can I use for this purpose?

> ?nls
> ?lm
> ?loess
> ?glm
> 
> And there are plenty more if you do not stick to base packages. Hard to
> say without knowing what function do you want to use.
> 
> Regards
> Petr
> 
> 
> >
> > Thanks,
> > Paola.
> >
> >
> > --
> > *Paola Lecca, PhD*
> > *The Microsoft Research - University of Trento*
> > *Centre for Computational and Systems Biology*
> > *Piazza Manci 17 38123 Povo/Trento, Italy*
> > *Phome: +39 0461282843*
> > *Fax: +39 0461282814*
> >
> >    [[alternative HTML version deleted]]
> >
> > ______________________________________________
> > R-help at 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.

> 
> 
> 
> -- 
> Paola Lecca, PhD
> The Microsoft Research - University of Trento
> Centre for Computational and Systems Biology
> Piazza Manci 17 38123 Povo/Trento, Italy
> Phome: +39 0461282843
> Fax: +39 0461282814



More information about the R-help mailing list