[R] will 9 data points work for a regression in R?

Uwe Ligges ligges at statistik.tu-dortmund.de
Wed Oct 3 20:07:22 CEST 2012



On 03.10.2012 19:58, liang.che at us.pwc.com wrote:
> See error message below:  can someone please help with this?  Thanks!
>
> Residuals:
> ALL 9 residuals are 0: no residual degrees of freedom!
>
> Residual standard error: NaN on 0 degrees of freedom
> Multiple R-squared:     1,      Adjusted R-squared:   NaN
> F-statistic:   NaN on 8 and 0 DF,  p-value: NA

Are these homeworks?

You have more variables then observations, i.e. no degrees of freedom left!

Uwe Ligges



>
> ______________________________________________________________________
> The information transmitted, including any attachments, is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited, and all liability arising therefrom is disclaimed. If you received this in error, please contact the sender and delete the material from any computer. PricewaterhouseCoopers LLP is a Delaware limited liability partnership.  This communication may come from PricewaterhouseCoopers LLP or one of its subsidiaries.
>
> 	[[alternative HTML version deleted]]
>
> ______________________________________________
> 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