Skip to content

help

1 message · Ben Bolker

#
[With apologies, I am re-forwarding this to r-sig-mixed-models: I
prefer to keep discussions there so they can be publicly viewed/archived.]
On 14-01-08 11:34 AM, jersa at centrum.cz wrote:
OK
So there would be at least some possibility of consistent effects of
direction across plants (as well as random variations in those effects
across plants)
It's probably best to construct a new data frame that has the desired
distance vector in it, e.g.

   newdat <- data.frame(distance=seq(100))

then use predict() to get the probability

  newdat$germ_prob <- predict(model,newdata=newdat,type="response")
I thought you said you had 10 plants, and I would have inferred 360
observations from your experimental design -- actually only 7 / 252?
(Intercept) -1.840153   0.617722  -2.979  0.00289 **
vzd         -0.004394   0.005174  -0.849  0.39572
year2009     0.995211   0.434851   2.289  0.02210 *
year2011     0.588760   0.444732   1.324  0.18555

  Treating distance (I assume that's vzd?) as continuous is a good idea,
although you should take a look at the data to see that there isn't a
strong nonlinear trend.
summary(prot2)
kytka (Intercept) 7.580e-01 0.870637
                         vzd         4.647e-05 0.006817 1.00
Here 'kytka' is plant?   The distance effect and intercept are
perfectly correlated here, suggesting overfitting -- and the distance
variance is extremely small (ditto) -- yo
(Intercept) -1.707002   0.527848  -3.234  0.00122 **
vzd         -0.007350   0.005982  -1.229  0.21916
year2009     0.993268   0.435158   2.283  0.02246 *
year2011     0.587586   0.444938   1.321  0.18663

  Notice the fixed-effect estimates here are nearly identical to the
previous case, because the estimates for the variances of the terms you
added to the model are nearly zero.