[R] Bad Plotting subrange

2004-02-17 Thread Tor A Strand
Dear helpers, In a script that displays the (y) fitted values, (y) observed values against the x values I occasionally get the error message Bad Plotting subrange. The error message comes rather randomly and I have no clue why. Can anybody explain me what this message means and what the

[R] missing values and gam (was: how to handle missing values)

2003-07-17 Thread Tor A Strand
Thank you for all the responses on generalized additive models(gam) and missing values. I am now able set up a model using gam and have a certain understanding of how R deals with missing values. The problem is, however, I am still not able to a gam model that is from a dataset that contains

[R] how to handle missing values

2003-07-16 Thread Tor A Strand
to figure out how to deal with missing values in R and have solved the problem by deleting observations with missing values before loading them into R. Can anyone give me a hint on how to do this in a simpler way? Sincerely, Dr. Tor A Strand Centre for International Health Haukeland Hospital

[R] More questions about gam and plot

2003-07-15 Thread Tor A Strand
, it does not graph the smooth terms but usually two of the other terms in the model, why? Dr. Tor A Strand Centre for International Health Haukeland Hospital University of Bergen 5021 Bergen Norway Phone: (country prefix 47) Residence:56 51 10 88, office: 55 97 49 80, fax: 55 97 49 79

[R] automatically saving plots and images

2003-07-13 Thread Tor A Strand
I am a novice Is there any way of automatically save a plot to an image file. I want to generate images of plots during a procedure and I do not want to manually save the files through the menu. Thanks Tor A Strand Centre for International Health University of Bergen