rStats.js v1.3.0
    Preparing search index...

    Function cohenES

    • Cohen's conventional effect sizes. Equivalent to pwr::cohen.ES(test, size) in R. The size is the second argument or the option size (giving both is a RangeError).

      Parameters

      • Optionaltest: string & {} | CohenTest
      • Optionalsize: "small" | string & {} | "large" | "medium"

      Returns CohenESResult

      cohenES("anov", "medium").effectSize; // 0.25
      
    • Cohen's conventional effect sizes, with the size in the options: cohenES("anov", { size: "medium" }).

      Parameters

      Returns CohenESResult

      cohenES("anov", { size: "medium" }).effectSize; // 0.25