Let's say I have a statistic X which is distributed as a mixture of two chi-square distributions; $$X \sim 0.5\chi^2_1 + 0.5\chi^2_2.$$ I'm wondering how I can calculate the critical value(and p-value) for this statistic $X$ at a given significance level $\alpha$?
emdbook::dchibarsq()
. Related, but no answer: Mixture of two chi-squared distributions $\endgroup$