<div dir="ltr">Hi all, <div><br></div><div>I am trying to understand why results from running a model of the form ~lvl1|lv2 are not comparable to results of running ~1 | lvl1 ,~ 1 | lvl2</div><div><br></div><div>In a simple example case below,results of the 2 models are comparable as expected.</div><div><br></div><div>```case <- data.frame(Dataset= c("a","b","c","d"),Cohort=c("c1","c1","c2","c3"), Tech= c("a1","a2","a1","a1"),Effect_size=c(-1.5,-3,1.5,3),Standard_error=c(.2,.4,.2,.4))</div><div>res1 = <a href="http://rma.mv">rma.mv</a>(Effect_size, Standard_error^2, random = list(~ 1 | Dataset,~ 1 | Cohort), data=case)<br></div><div>res2=<span style="background-color:transparent;color:inherit;font-size:inherit;white-space:pre-wrap"><a href="http://rma.mv">rma.mv</a>(</span>Effect_size<span style="background-color:transparent;color:inherit;font-size:inherit;white-space:pre-wrap">, </span>Standard_error<span style="background-color:transparent;color:inherit;font-size:inherit;white-space:pre-wrap">^</span><span class="gmail-hljs-number" style="background-color:transparent;font-size:inherit;white-space:pre-wrap;box-sizing:border-box;color:rgb(0,153,153)">2</span><span style="background-color:transparent;color:inherit;font-size:inherit;white-space:pre-wrap">, random = ~ </span>Dataset<span style="background-color:transparent;color:inherit;font-size:inherit;white-space:pre-wrap"> | Cohort, data=case)</span></div><div>```<br></div><div><div>However, when running the 2 model on a more complex example [attached] markedly different results are obtained with <span style="background-color:transparent;font-size:inherit;color:inherit;white-space:pre-wrap">~ </span>Dataset<span style="background-color:transparent;font-size:inherit;color:inherit;white-space:pre-wrap"> | Cohort estimating a pvalue of .02 and </span>list(~ 1 | Dataset,~ 1 | Cohort) estimating a pvalue of .2</div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><b>Divya Ravichandar</b><div>Scientist</div><div>Second Genome</div></div></div></div></div></div></div>