Hi Cliff,
Excellent, just what I needed -- wish I had thought of that myself.
Thanks a lot!
Jacob
On 13 Aug 2009, at 01:49, Clifford Long wrote:
Hi Jacob,
At the risk of embarrassing myself, I gave it a shot. I'll throw this
out on the list, if for no other reason than perhaps someone w
Hi Jacob,
At the risk of embarrassing myself, I gave it a shot. I'll throw this
out on the list, if for no other reason than perhaps someone with
higher wattage than myself might tear it apart and give you something
both useful and perhaps elegant (from an R coding standpoint).
(see the followin
Hi Cliff -- thanks for the suggestion.
I tried extracting the predicted mean and standard error using
predict(). Afterwards I simulated the dependent variable using
rnorm(), with mean and standard deviation taken from the predict()
function (sd = sqrt(n)*se). The points obtained this way we
Would the "predict" routine (using 'newdata') do what you need?
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
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(), but it generates a new value of the
dependent variable corresponding to each of the original x-
5 matches
Mail list logo