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? 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]]
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 guidehttp://www.R-project.org/posting-guide.html> and provide commented, minimal, self-contained, reproducible code.
> > 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
The answer pretty much depends on the kind of model you want to fit. For standard model would imagine that you do not need any R packages for this. Have a look at: ?lm #for linear models ?nls #for non linear stuff If you would have googled: "R fit model tutorial" prior to posting you would have found many helpful tutorials. HTH Jannis On 08/05/2011 02:40 PM, Paola Lecca wrote:> 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? > > Thanks, > Paola. > >