Skip to content
Prev 5205 / 20628 Next

Is it possible to weight residuals in MCMCglmm?

Hi,

It is not possible currently - the inflexibility of the residual  
structure was due to an oversight when I was writing MCMCglmm which I  
haven't had time to go back and change. As I'm sure you are aware  
there are three options, none of which are exactly what you want (I  
think).

Lets have w as a set of values associated with each observation and  
are proportional to the standard error of each measurement  (m).

The three options are

a) specifying mev=w^2 which fits:

VAR(m_{i}) =  w_{i}^2+VAR(e)

b) specifying random=~leg(sqrt(w), -1, FALSE):units which fits:

VAR(m_{i}) =  (c*w_{i})^2+VAR(e)

where c is the square root of the variance associated with the random effects.

c) specifying rcov=~idh(units):units and  prior=list(diag(w^2), fix=1)  
  which fits:

VAR(m_{i}) =  w_{i}^2

where c is the square root of the variance associated with the random effects.

I think you would like

VAR(m_{i}) =  (c*w_{i})^2

which is not possible


Cheers,

Jarrod


Quoting Szymek Drobniak <geralttee at gmail.com>: