Forum Numerical Method Bug Reports
Can’t create object of class Levene.
-
dmuniParticipant 2012-03-22 at 9:20 am
I am calculating Levene’s test for equality of variances. In my code whenever I’m creating an object of class Levene, that line is not executed and it shows no error in the console. Here is the part of my code…
====================================================================
Levene.Type m_type = Levene.Type.MEANS;Levene.Type med_type = Levene.Type.MEDIAN;Levene.Type trm_type = Levene.Type.TRIMMED_MEANS;Levene lev = new Levene(m_type,sample,sample1); double p_lev = lev.pValue();====================================================================
the red line is not executed.. anybody has any idea??
-
RyuParticipant 2012-03-22 at 9:38 am
What do you mean by “not executed”? Does it just hang or what?
I got it working on my computer:
<br /> public static void main(String[] args) {<br /> Levene.Type m_type = Levene.Type.MEANS;<br /> Levene.Type med_type = Levene.Type.MEDIAN;<br /> Levene.Type trm_type = Levene.Type.TRIMMED_MEANS;<br /> Levene lev = new Levene(m_type, new double[]{1., 2., 3., 4., 5.}, new double[]{0.5, 2.5, 3.5, 4.5, 5.5});<br /> double p_lev = lev.pValue();<br /> System.out.println(p_lev);<br /> }<br />Output:
run: 0.70025139265086 BUILD SUCCESSFUL (total time: 0 seconds)
Can you post more information please? What p-value do you get? What is the error message? (Maybe you can just do a clean & build.)