Re: [R] Storing whole regression results

2012-06-26 Thread Sarah Goslee
You can store entire regression results in a list, then use lapply()
to retrieve individual coefficients as desired.

Lists are very powerful for managing odd data formats, and no loops needed.

Sarah

On Tue, Jun 26, 2012 at 4:19 PM, Kevin Chang  wrote:
> Hello seasons R users,
>
>
>
> Is it possible to store a complete regression result into an array? I've
> already been able to save individual regression coefficients, but would like
> to store the whole regression results into different arrays through a loop.
>
>
>
> So that in under different quantiles regressions, I would be able to create
> a loop and store the full regression result each time into a different array
> for printing.
>
> The only way I can think of is to pre-generate a whole set of arrays and
> matrices to individually store each regression coefficients one at a time.
>
>
>
> Thank you,
>
>
>
> Kevin
>
>
>

-- 
Sarah Goslee
http://www.functionaldiversity.org

__
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.


[R] Storing whole regression results

2012-06-26 Thread Kevin Chang
Hello seasons R users,

 

Is it possible to store a complete regression result into an array? I've
already been able to save individual regression coefficients, but would like
to store the whole regression results into different arrays through a loop.

 

So that in under different quantiles regressions, I would be able to create
a loop and store the full regression result each time into a different array
for printing.

The only way I can think of is to pre-generate a whole set of arrays and
matrices to individually store each regression coefficients one at a time.

 

Thank you,

 

Kevin

 

Master of Science Student |  University of Guelph Department of Food,
Resource and Agricultural Economics 
J.D. MacLachlan Building - Room 002 Guelph, ON N1G 2W1 
Webpage:
http://fare.uoguelph.ca/users/kchang01 
Email: kchan...@uoguelph.ca

Mobile:226-979-2813

 


[[alternative HTML version deleted]]

__
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.