> however, the result is a list and i do not know whether more model fitting
> statistics (like p value of t test) is included in "result" or not. If i
> print the first element of resut i got the followings:
>
The structure command is extremely helpful here.
> str(result)
will give you all the information about what is returned by a call from lm.
Using that information you can extract anything you want.
> str(summary(result))
shows you how to get at the stuff in the summary (most of which is also
somewhere in the lm object).
--
View this message in context:
http://r.789695.n4.nabble.com/how-to-parse-out-fitting-statistics-and-write-them-into-a-data-frame-tp2075707p2075874.html
Sent from the R help mailing list archive at Nabble.com.
______________________________________________
R-help@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.