Re: [R] Comparing fitting models

2011-01-06 Thread Frodo Jedi
-help@r-project.org Sent: Wed, January 5, 2011 10:34:15 PM Subject: RE: [R] Comparing fitting models Just do anova(fit3, fit1) This compares those 2 models directly. -- Gregory (Greg) L. Snow Ph.D. Statistical Data Center Intermountain Healthcare greg.s...@imail.org 801.408.8111 -Original

Re: [R] Comparing fitting models

2011-01-06 Thread Frodo Jedi
Dear Greg, thanks so much. Now I understand!! Thanks!! From: Greg Snow greg.s...@imail.org r-help@r-project.org Sent: Wed, January 5, 2011 11:27:53 PM Subject: RE: [R] Comparing fitting models The output with all three fits gives you 2 comparisons, fit1

[R] Comparing fitting models

2011-01-05 Thread Frodo Jedi
Dear all, I have 3 models (from simple to complex) and I want to compare them in order to see if they fit equally well or not. From the R prompt I am not able to see where I can get this information. Let´s do an example: fit1- lm(response ~ stimulus + condition + stimulus:condition, data=scrd)

Re: [R] Comparing fitting models

2011-01-05 Thread Greg Snow
Of Frodo Jedi Sent: Wednesday, January 05, 2011 10:10 AM To: r-help@r-project.org Subject: [R] Comparing fitting models Dear all, I have 3 models (from simple to complex) and I want to compare them in order to see if they fit equally well or not. From the R prompt I am not able to see

Re: [R] Comparing fitting models

2011-01-05 Thread Greg Snow
[mailto:frodo.j...@yahoo.com] Sent: Wednesday, January 05, 2011 2:46 PM To: Greg Snow; r-help@r-project.org Subject: Re: [R] Comparing fitting models Dear Greg, thanks for your answer, but that is not the point. My question is another: from the data in the R prompt how can I compare the models? I don