*! version 1.0.1 28oct2021 Matteo Bottai

help m_effectsize

m_effectsize: Cohen's D statistics for random effects models

Syntax

m_effectsize varname [, iqr options]

Description

m_effectsize is a post-estimation command of 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 varname.

Options

iqr the effect size is relative to the interquartile range

options specifies options as for the bootstrap command ([R] bootstrap)

Examples

// Use data

use http://www.stata-press.com/data/r15/pig, clear

gen treatment = mod(id,2)

gen interaction = treatment*week

// Estimate a random effects model

xtreg weight treatment week interaction, i(id)

// Cluster bootstrap for Cohen's D

m_effectsize interaction

Also see

[XT] xtreg, [R] bootstrap

Author

Matteo Bottai

Unit of Biostatistics

Institute of Environmental Medicine, Karolinska Institutet

Stockholm, Sweden