class_docstr: Test parametric.py.
class_docstr_tok: ["Test","parametric.py","."]
docstr: Test function welch_anova.
docstr_tok: ["Test","function","welch_anova","."]
code: def test_welch_anova(self):
      """Test function welch_anova."""
      # Pain dataset
      df_pain = read_dataset("anova")
      aov = welch_anova(
          dv="Pain threshold", between="Hair color", data=df_pain
      ).round(4)
      # Compare with JASP
      assert aov.at[0, "ddof1"] == 3
      assert aov.at[0, "ddof2"] == 8.3298
      assert aov.at[0, "F"] == 5.8901
      assert aov.at[0, "p-unc"] == 0.0188
      assert aov.at[0, "np2"] == 0.5760
  
file_path: pingouin/pingouin/tests/test_parametric.py
imports: import pytest
  import numpy
  from unittest import TestCase
  from numpy.testing import assert_array_equal
  from pingouin import read_dataset
  from pingouin.parametric import ttest, anova, rm_anova, mixed_anova, ancova, welch_anova
label_desc: Use image node_id 3 for calling the TestParametric obj's underlying member method code with example usage: obj.test_welch_anova() without return types