On Mon, 24 Oct 2016 10:54:00 -0500
Andrea Marcela Huerfano Barbosa wrote:
> Hi guys,
> When I try to do a linear regression into the console appears this
> warning message:
>
> >* attempting model selection on an essentially perfect fit is
> >nonsense*
>
> Some one could tell me what does it me
Dear Andrea
At a guess you are trying to add variables to your model in some
automatic way but since your model is already perfect the unnamed
function you are using is telling you that you gave it an impossible task.
On 24/10/2016 16:54, Andrea Marcela Huerfano Barbosa wrote:
Hi guys,
When
Hi Andrea,
Assuming that your model is something like:
lm(y~x,data=mydata)
See what:
cor(mydata$y,mydata$x)
returns. If it is very very close to 1 or -1, there lies your problem.
If one or more of your predictor variables is an almost perfect
predictor of the response, you don't have much room
Probably not. This is a statistics issue, not an R issue. But you need to
show us your code to make sure it's not a syntax error. Assuming it's not,
you'll need to consult a local statistical expert for help.
Bert
[[alternative HTML version deleted]]
4 matches
Mail list logo