[EMAIL PROTECTED] wrote:
Hello everyone,
I am having a problem using the predict (or the predict.glm) function in R.
Basically, I run the glm model on a training data set and try to obtain
predictions for a set of new predictors from a test data set (i.e., not the
predictors that were utilized
,
John
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Uwe Ligges
Sent: Thursday, September 23, 2004 1:33 AM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: [R] Issue with predict() for glm models
[EMAIL PROTECTED] wrote:
Hello everyone
: Thursday, September 23, 2004 1:33 AM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: [R] Issue with predict() for glm models
[EMAIL PROTECTED] wrote:
Hello everyone,
I am having a problem using the predict (or the
predict.glm) function in R.
Basically, I run the glm model on a training data set
Dear Uwe,
-Original Message-
From: Uwe Ligges [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 23, 2004 8:06 AM
To: John Fox
Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: [R] Issue with predict() for glm models
John Fox wrote:
Dear Uwe,
Unless I've somehow
Thanks to John Fox, Andy Liaw, and Uwe Ligges for their help with my problem
regarding the use of the predict() function to obtain predictions for a new
set of predictor values. It appears that the bottom line (at least for my
purposes) is that the names and the setup for the data of the
John Fox wrote:
Dear Uwe,
-Original Message-
From: Uwe Ligges [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 23, 2004 8:06 AM
To: John Fox
Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: [R] Issue with predict() for glm models
John Fox wrote:
Dear Uwe,
Unless I've somehow
PROTECTED]
Sent: Thursday, September 23, 2004 8:06 AM
To: John Fox
Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: [R] Issue with predict() for glm models
John Fox wrote:
Dear Uwe,
Unless I've somehow messed this up, as I mentioned
yesterday, what you
suggest doesn't seem to work when
Could you just use
lines(newX, myPred, col=2)
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Paul Johnson
Sent: Thursday, September 23, 2004 10:3 AM
To: r help
Subject: followup: Re: [R] Issue with predict() for glm models
I have a follow up question
On Thu, 2004-09-23 at 12:02, Paul Johnson wrote:
I have a follow up question that fits with this thread.
Can you force an overlaid plot showing predicted values to follow the
scaling of the axes of the plot over which it is laid?
Here is an example based on linear regression, just for
Dear Uwe,
-Original Message-
From: Uwe Ligges [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 23, 2004 11:37 AM
To: John Fox
Cc: [EMAIL PROTECTED]
Subject: Re: [R] Issue with predict() for glm models
. . .
John,
note that I used glm(y ~ .) (the dot!),
because
John Fox wrote:
Dear Uwe,
-Original Message-
From: Uwe Ligges [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 23, 2004 11:37 AM
To: John Fox
Cc: [EMAIL PROTECTED]
Subject: Re: [R] Issue with predict() for glm models
. . .
John,
note that I used glm(y ~ .) (the dot!),
because
Dear Mark and Joe,
Actually, the problem here appears to be caused by the use of a matrix
on the RHS of the model formula. I'm not sure why this doesn't work (I
must be missing something -- perhaps someone else can say what), but
Joe can get the output he expects by specifying the columns of his
12 matches
Mail list logo