[R] CRAN and Multiple Linear Regression

Peter Dalgaard P.Dalgaard at biostat.ku.dk
Wed May 7 16:32:56 CEST 2008


Abhijit Dasgupta wrote:
> Multiple linear regression is handled by the function lm() in the
> default installation of R. This takes inputs as lm(y~x1+x2+x3).
>
> If you're going to be using R regularly, there are several books which
> cover the basic statistical analyses available in R (and then some),
> including those by Peter Daalgard and by Brian Ripley, who are very
> regular contributors to this list.
Thanks for saving me a shameless plug (notice that the double a comes
last, though...).

For people just out to get their feet wet, there's also a collection of
shorter and longer documents in the contributed section on CRAN,
http://cran.r-project.org/other-docs.html . I particularly like Jason
Owen's "The R Guide" as a kickstart document. As far as I can tell, you
can just skip things that rely on math that you haven't heard of (such
as matrix algebra) without getting lost.

    -pd

>
> Abhijit
>
> Anja und Th. Sponsel wrote:
>> Hello
>>
>> I have to solve a multiple linear regression. Most programs like Excel
>> or Mathlab only support 5-10 dimensions. Now I have installed CRAN and
>> I have no clue what to do next. At the moment I am entering my data
>> into an excelsheet (for quick copy- paste). The Y-array will be 20
>> columns (=dimensions) and 128 rows (=variables). The X-array may also
>> be 128 rows in Excel.
>>
>> Which package do I need - or does it work without any package?
>>
>> What commands do I have to enter? I'm not familiar with CRAN and I
>> didn't find any example.
>>
>> Best regards,
>>  Thomas
>>
>> ______________________________________________
>> 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.
>>
>
> ______________________________________________
> 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.


-- 
   O__  ---- Peter Dalgaard             Øster Farimagsgade 5, Entr.B
  c/ /'_ --- Dept. of Biostatistics     PO Box 2099, 1014 Cph. K
 (*) \(*) -- University of Copenhagen   Denmark      Ph:  (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk)              FAX: (+45) 35327907



More information about the R-help mailing list