{smcl} {* *! version 1.0.1 28oct2021 Matteo Bottai}{...} {cmd:help m_effectsize} {hline} {hi:m_effectsize}: Cohen's D statistics for random effects models {title:Syntax} {p 8 13 2} {cmd:m_effectsize {it:{help varname}} [, iqr options]} {title:Description} {pstd} {cmd:m_effectsize} is a post-estimation command of xtreg ({manhelp xtreg XT:xtreg}) to estimate Cohen's D statistics for random effects models. It estimates the Cohen's D effect of the variable specified in {it:varname}. {title:Options} {synoptset 12 tabbed}{...} {synopt:iqr}the effect size is relative to the interquartile range{p_end} {synopt:options}specifies options as for the bootstrap command ({manhelp bootstrap R:bootstrap}){p_end} {title:Examples} {phang}// Use data{p_end} {phang}{stata "use http://www.stata-press.com/data/r15/pig, clear"}{p_end} {phang}{stata "gen treatment = mod(id,2)"}{p_end} {phang}{stata "gen interaction = treatment*week"}{p_end} {phang}// Estimate a random effects model{p_end} {phang}{stata "xtreg weight treatment week interaction, i(id)"}{p_end} {phang}// Cluster bootstrap for Cohen's D{p_end} {phang}{stata "m_effectsize interaction"}{p_end} {title:Also see} {phang}{manhelp xtreg XT:xtreg}, {manhelp bootstrap R:bootstrap}{p_end} {title:Author} {pstd}Matteo Bottai{p_end} {pstd}Unit of Biostatistics{p_end} {pstd}{browse "http://ki.se/":Institute of Environmental Medicine, Karolinska Institutet}{p_end} {pstd}Stockholm, Sweden{p_end}