[R] How to produce glm graph
dwinsemius at comcast.net
Sat Nov 20 18:33:15 CET 2010
On Nov 20, 2010, at 12:22 PM, Sonja Klein wrote:
> Thanks for the advise.
> I tried predict but no matter what I do I always get an error
> message saying
> that the 'x' and 'y' differ in length. Most of my variables are also
> categorical but continous of which I'm not sure how to deal with.
> R procedure of a simplified model with categorical variable:
Did you look at predict? I am guessing you didn't satisfy its "needs",
namely an exact match o the names of its terms. Those I() terms always
mess me up and I avoid them religiously.
> I also tried it the way Crawley suggests in his book:
> But I still get the same error message saying that 'x' and 'y'
> differ in
> Any suggestions where the mistake might be?
The real mistake at this point is not including a workable example.
See the Posting Guide. You are asking us to guess about mistakes in
your data setup and aren't even including the exact error message. The
fix for both issues you will see described in the Posting Guide.
> In the end I want to get a graph for a model like this:
David Winsemius, MD
West Hartford, CT
More information about the R-help