[R] How can I extract information from list which class is nls

From: Xavier Barron <xbarron_at_yahoo.com>
Date: Wed 19 Jul 2006 - 02:06:00 EST


I work with :
R : Copyright 2006, The R Foundation for Statistical Computing
Version 2.3.1 (2006-06-01)
On Windows XP Professional (Version 2002) SP2.

At this moment I use the function "nls" combined with a selfStar model (SSmicmen, related to Michaelis-Menten equation, and provided by the "stats" package).

When I realise the following operation (cf. p 59 of the "An Introduction to R" manual,
http://www.r-project.org/, for more details):

> fit<-nls(y~SSmicmen(x, Vm, K), df)
> summary(fit)

I obtain the values of Vm and K. The object "fit" is a list of the class "nls". However I cannot identify the objects which are inside of "fit" and which contain the values of Vm and K.

Actually, I would like to extract these values to introduce them into new objects but I don't know how?!

Maybe, somebody could help me to solve this problem. It would be very helpful for me.

Best regards,


R-help@stat.math.ethz.ch 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. Received on Wed Jul 19 03:24:13 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Wed 19 Jul 2006 - 04:22:35 EST.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.