[R] Storing the linear model object

R. Michael Weylandt <michael.weylandt@gmail.com> michael.weylandt at gmail.com
Wed Nov 30 13:03:38 CET 2011


If you mean storing it within one session, it's just like any other object

m <- lm(...)

and it can be put in lists, modified, whatever just like any other object. 

Michael

On Nov 30, 2011, at 4:23 AM, Diane Bailleul <diane.bailleul at u-psud.fr> wrote:

> Good morning,
> Normally, if you save your R environment, some objects, like your lm, must be saved in with.
> Otherwise, have you tried save() or dput() functions ?
> 
> Le 11/30/2011 6:10 AM, arunkumar1111 a écrit :
>> Hi
>> 
>>   Please let me know if we can store the linear model object in the data
>> base and retrive the object and output from them
>> 
>> Data<- read.csv("C:/FE and RE.csv")
>> Formula="Y~X2+X3+X4
>> lmobject = lm(formula=Formula,data=Data)
>> 
>> can i store the lm object in the database and and is it possible to retrive
>> it and get the summary information
>> 
>> --
>> View this message in context: http://r.789695.n4.nabble.com/Storing-the-linear-model-object-tp4121944p4121944.html
>> Sent from the R help mailing list archive at Nabble.com.
>> 
>> ______________________________________________
>> 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.
> 
> 
> -- 
> Diane Bailleul
> Doctorante
> Université Paris-Sud 11 - Faculté des Sciences d'Orsay
> Unité Ecologie, Systématique et Evolution
> Département Biodiversité, Systématique et Evolution
> UMR 8079 - UPS CNRS AgroParisTech
> Porte 320, premier étage, Bâtiment 360
> 91405 ORSAY CEDEX FRANCE
> (0033) 01.69.15.56.64
> 
> ______________________________________________
> 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.



More information about the R-help mailing list