paperKB
coga / coga-kb
Help
Sign in

Chunk #24 — Demonstrations — Example 1: Effect sizes of smoking quantity and nicotine dependence within assessment waves

Source
A Practical Guide to Calculating Cohen's f(2), a Measure of Local Effect Size, from PROC MIXED.
Embedded
yes

Text

Calculating R2 and f 2 values from the residual variance estimates can be automated by using the SAS output delivery system (ODS) to store the desired parameters in separate data sets, and subsequently using a merged dataset of variances to calculate R2 and f 2 using Eqs 3 and 2, respectively. The following syntax calculating R2 and f 2 for smoking quantity illustrates this: