Skip to content
Prev 188 / 20628 Next

incorrect weights type in lmer

On 5/22/07, Sundar Dorai-Raj <sundar.dorai-raj at pdf.com> wrote:
Thanks for pointing out the problem, Sundar.  Although this is not
documented the weights need to be double precision and you are using
integers.  Your example works with weights = as.double(w) or weights =
as.numeric(w).

Most of the time R will quietly coerce integers to numeric as needed
but not in this case.