Homework? (We don't do homework here).

-- Bert

On Tue, Jul 3, 2012 at 10:08 PM, Akhil dua <akhil.dua.12@gmail.com> wrote:

> ---------- Forwarded message ----------
> From: Akhil dua <akhil.dua.12@gmail.com>
> Date: Wed, Jul 4, 2012 at 10:33 AM
> Subject:
> To: r-help@r-project.org
>
>
> Hi everyone I
> have data on stock prices and market indices
>
> and I need to run a seperate regression of every stock on market
> so I want to write a  "for loop"  so that I wont have to write codes again
> and again to run the regression...
> my data is in the format given below
>
>
>
> Date               Stock1  Stock2   Stock3    Market
> 01/01/2000         1           2          3             4
> 01/02/2000         5           6          7             8
> 01/03/2000         1           2          3             4
> 01/04/2000         5           6          7             8
>
>
> So can any one help me how to write this loop
>
>         [[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.
>



-- 

Bert Gunter
Genentech Nonclinical Biostatistics

Internal Contact Info:
Phone: 467-7374
Website:
http://pharmadevelopment.roche.com/index/pdb/pdb-functional-groups/pdb-biostatistics/pdb-ncb-home.htm

	[[alternative HTML version deleted]]

