Re: [R] Simulating points from GLM corresponding to new x-values

2009-08-13 Thread Jacob Nabe-Nielsen
ines(newx[,1], pred.sim, col='darkblue', type='p') #---------- # END #-- On Wed, Aug 12, 2009 at 2:51 PM, Jacob Nabe- Nielsen wrote: Hi Cliff -- thanks for the suggestion. I tried extracting the predicted mea

Re: [R] Simulating points from GLM corresponding to new x-values

2009-08-12 Thread Jacob Nabe-Nielsen
Cliff Long Hollister Incorporated On Wed, Aug 12, 2009 at 4:33 AM, Jacob Nabe- Nielsen wrote: Dear List, Does anyone know how to simulate data from a GLM object correponding to values of the independent (x) variable that do not occur in the original dataset? I have tried using simulate(), bu

[R] Simulating points from GLM corresponding to new x-values

2009-08-12 Thread Jacob Nabe-Nielsen
-values, which is not what I need. Ideally I whould like to simulate new values for GLM objects both with family="gaussian" and with family="binomial". Thanks in advance, Jacob Jacob Nabe-Nielsen, PhD, MSc Scientist --