Re: [R] Fitting a model to a test set

From: Kuhn, Max <Max.Kuhn_at_pfizer.com>
Date: Sun, 24 Jun 2007 19:14:01 -0400


Des,

Please provide some information (like the results of sessionInfo) and example code for your model. Did you use gee to fit the model and with what function? If could be that you need to examine the type argument of the predict function to make sure that you are getting the scale that you are interested in.

Max  

-----Original Message-----
From: r-help-bounces_at_stat.math.ethz.ch
[mailto:r-help-bounces_at_stat.math.ethz.ch] On Behalf Of Des Callaghan Sent: Sunday, June 24, 2007 3:49 PM
To: r-help_at_stat.math.ethz.ch
Subject: [R] Fitting a model to a test set

Dear Forum members,  

I have created a quasi-poisson model from a training dataset and now wish to
use the model to estimate y values for a test dataset, in order to validate
the model. The trouble is I can't figure out how to estimate y values for
the test set using the model derived from the training set. I've been fiddling about with predict(), but can't seem to get the desired result. Could somebody help please? Thanks very much in advance.  

Best wishes,
Des  

        [[alternative HTML version deleted]]



R-help_at_stat.math.ethz.ch 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.

LEGAL NOTICE\ Unless expressly stated otherwise, this messag...{{dropped}}

R-help_at_stat.math.ethz.ch 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. Received on Sun 24 Jun 2007 - 23:19:36 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Mon 25 Jun 2007 - 00:32:27 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.