[rkward-cvs] SF.net SVN: rkward: [2281] trunk/rkward/rkward/plugins/analysis/variances
sjar at users.sourceforge.net
sjar at users.sourceforge.net
Mon Dec 17 23:00:37 UTC 2007
Revision: 2281
http://rkward.svn.sourceforge.net/rkward/?rev=2281&view=rev
Author: sjar
Date: 2007-12-17 15:00:37 -0800 (Mon, 17 Dec 2007)
Log Message:
-----------
This simple plug-in performs the Levene Test (levene.test {car}; test for homogeneity of variance). Basically ready to use (or public review) but I don't like the output yet.
Added Paths:
-----------
trunk/rkward/rkward/plugins/analysis/variances/levene_test.php
trunk/rkward/rkward/plugins/analysis/variances/levene_test.rkh
trunk/rkward/rkward/plugins/analysis/variances/levene_test.xml
Added: trunk/rkward/rkward/plugins/analysis/variances/levene_test.php
===================================================================
--- trunk/rkward/rkward/plugins/analysis/variances/levene_test.php (rev 0)
+++ trunk/rkward/rkward/plugins/analysis/variances/levene_test.php 2007-12-17 23:00:37 UTC (rev 2281)
@@ -0,0 +1,22 @@
+<?
+function preprocess () { ?>
+require(car)
+<?}
+
+function calculate () {
+
+?>
+result <- levene.test (<? getRK ("y"); ?>, <? getRK ("group"); ?>)
+<?
+}
+
+function printout () {
+?>
+names <- rk.get.description (<? getRK ("y"); ?>, <? getRK ("group"); ?>)
+
+rk.header ("Levene's Test",names)
+
+rk.print (result)
+<?
+}
+?>
Added: trunk/rkward/rkward/plugins/analysis/variances/levene_test.rkh
===================================================================
--- trunk/rkward/rkward/plugins/analysis/variances/levene_test.rkh (rev 0)
+++ trunk/rkward/rkward/plugins/analysis/variances/levene_test.rkh 2007-12-17 23:00:37 UTC (rev 2281)
@@ -0,0 +1,23 @@
+<!DOCTYPE rkhelp>
+<document>
+ <summary>
+ This test performs the Levene's test for homeogeneity of variance across groups.
+ </summary>
+
+ <usage>
+ Select the response variable and the factor defining groups to test for homeogeneity of variance across groups.
+ </usage>
+
+ <settings>
+ <setting id="y">response variable (numeric vector).</setting>
+ <setting id="group">factor defining groups (factor).</setting>
+ </settings>
+ <related>
+ <ul>
+ <li><link href="rkward://rhelp/levene.test"/></li>
+ <li><link href="rkward://rhelp/bartlett.test"/></li>
+ <li>Levene, H. (1960). In Contributions to Probability and Statistics: Essays in Honor of Harold Hotelling, I. Olkin et al. eds., Stanford University Press, pp. 278-292.</li>
+ </ul>
+
+ </related>
+</document>
Added: trunk/rkward/rkward/plugins/analysis/variances/levene_test.xml
===================================================================
--- trunk/rkward/rkward/plugins/analysis/variances/levene_test.xml (rev 0)
+++ trunk/rkward/rkward/plugins/analysis/variances/levene_test.xml 2007-12-17 23:00:37 UTC (rev 2281)
@@ -0,0 +1,17 @@
+<!DOCTYPE rkplugin>
+
+<document>
+ <code file="levene_test.php"/>
+ <help file="levene_test.rkh"/>
+
+ <dialog label="Levene's Test">
+ <row>
+ <varselector id="vars"/>
+ <column>
+ <varslot type="numeric" id="y" source="vars" required="true" label="response variable"/>
+ <varslot type="factor" id="group" source="vars" required="true" label="groups"/>
+ </column>
+ </row>
+ </dialog>
+
+</document>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the rkward-tracker
mailing list