[rkward-cvs] SF.net SVN: rkward:[2622] trunk/rkward/rkward/plugins/analysis/ ansari_bradley

tfry at users.sourceforge.net tfry at users.sourceforge.net
Mon Aug 24 09:53:39 UTC 2009


Revision: 2622
          http://rkward.svn.sourceforge.net/rkward/?rev=2622&view=rev
Author:   tfry
Date:     2009-08-24 09:53:39 +0000 (Mon, 24 Aug 2009)

Log Message:
-----------
Nicer handling of confidence interval. Correct some links.

Modified Paths:
--------------
    trunk/rkward/rkward/plugins/analysis/ansari_bradley/ansari_bradley_exact_test.php
    trunk/rkward/rkward/plugins/analysis/ansari_bradley/ansari_bradley_exact_test.rkh
    trunk/rkward/rkward/plugins/analysis/ansari_bradley/ansari_bradley_exact_test.xml
    trunk/rkward/rkward/plugins/analysis/ansari_bradley/ansari_bradley_test.php
    trunk/rkward/rkward/plugins/analysis/ansari_bradley/ansari_bradley_test.rkh
    trunk/rkward/rkward/plugins/analysis/ansari_bradley/ansari_bradley_test.xml

Modified: trunk/rkward/rkward/plugins/analysis/ansari_bradley/ansari_bradley_exact_test.php
===================================================================
--- trunk/rkward/rkward/plugins/analysis/ansari_bradley/ansari_bradley_exact_test.php	2009-08-22 20:29:19 UTC (rev 2621)
+++ trunk/rkward/rkward/plugins/analysis/ansari_bradley/ansari_bradley_exact_test.php	2009-08-24 09:53:39 UTC (rev 2622)
@@ -13,9 +13,11 @@
 	} else if ($exact_setting == "no") {
 		$exact_opt = ", exact=FALSE";
 	}
+	if (getRK_val ("confint") == "TRUE") {
+		if (($conflevel = getRK_val("conflevel")) != "0.95") $conflevel_opt = ", conf.level=" . $conflevel;
+	}
 ?>
-result <- ansari.exact (<? getRK ("x"); ?>, <? getRK ("y"); ?>, alternative = "<? getRK ("alternative"); ?>"<? echo ($exact_opt); ?>, conf.int = <? getRK ("confint"); ?> <?
-if (($conflevel = getRK_val ("conflevel")) != "0.95") echo (", conf.level=" . $conflevel); ?>)
+result <- ansari.exact (<? getRK ("x"); ?>, <? getRK ("y"); ?>, alternative = "<? getRK ("alternative"); ?>"<? echo ($exact_opt); ?>, conf.int = <? getRK ("confint"); echo ($conflevel_opt); ?>)
 
 <?
 }

Modified: trunk/rkward/rkward/plugins/analysis/ansari_bradley/ansari_bradley_exact_test.rkh
===================================================================
--- trunk/rkward/rkward/plugins/analysis/ansari_bradley/ansari_bradley_exact_test.rkh	2009-08-22 20:29:19 UTC (rev 2621)
+++ trunk/rkward/rkward/plugins/analysis/ansari_bradley/ansari_bradley_exact_test.rkh	2009-08-24 09:53:39 UTC (rev 2622)
@@ -1,7 +1,7 @@
 <!DOCTYPE rkhelp>
 <document>
 	<summary>
-		This test performs the Ansari-Bradley two-sample exact test to test for a difference in scale parameters.
+		This test performs the Ansari-Bradley two-sample exact test to test for a difference in scale parameters. This test differs from <link href="rkward://component/ansari_bradley_test"/> in that exact p-values can also be computed in the presence of ties.
 	</summary>
 
 	<usage>
@@ -20,9 +20,8 @@
 	</settings>
 	<related>
 		<ul>
-			<li><link href="rkward://rhelp/ansari.test"/></li>
 			<li><link href="rkward://rhelp/ansari.exact"/></li>
-			<li><link href="rkward://component/ansari_bradley_exact_test"/></li>
+			<li><link href="rkward://component/ansari_bradley_test"/></li>
 		</ul>
 
 	</related>

Modified: trunk/rkward/rkward/plugins/analysis/ansari_bradley/ansari_bradley_exact_test.xml
===================================================================
--- trunk/rkward/rkward/plugins/analysis/ansari_bradley/ansari_bradley_exact_test.xml	2009-08-22 20:29:19 UTC (rev 2621)
+++ trunk/rkward/rkward/plugins/analysis/ansari_bradley/ansari_bradley_exact_test.xml	2009-08-24 09:53:39 UTC (rev 2622)
@@ -3,6 +3,10 @@
 	<code file="ansari_bradley_exact_test.php"/>
 	<help file="ansari_bradley_exact_test.rkh"/>
 
+	<logic>
+		<connect client="conflevel.enabled" governor="confint.state"/>
+	</logic>
+
 	<dialog label="Ansari-Bradley two-sample exact test">
 		<tabbook>
 			<tab label="Basic settings">

Modified: trunk/rkward/rkward/plugins/analysis/ansari_bradley/ansari_bradley_test.php
===================================================================
--- trunk/rkward/rkward/plugins/analysis/ansari_bradley/ansari_bradley_test.php	2009-08-22 20:29:19 UTC (rev 2621)
+++ trunk/rkward/rkward/plugins/analysis/ansari_bradley/ansari_bradley_test.php	2009-08-24 09:53:39 UTC (rev 2622)
@@ -11,9 +11,11 @@
 	} else if ($exact_setting == "no") {
 		$exact_opt = ", exact=FALSE";
 	}
+	if (getRK_val ("confint") == "TRUE") {
+		if (($conflevel = getRK_val("conflevel")) != "0.95") $conflevel_opt = ", conf.level=" . $conflevel;
+	}
 ?>
-result <- ansari.test (<? getRK ("x"); ?>, <? getRK ("y"); ?>, alternative = "<? getRK ("alternative"); ?>"<? echo ($exact_opt); ?>, conf.int = <? getRK ("confint"); ?> <?
-if (($conflevel = getRK_val ("conflevel")) != "0.95") echo (", conf.level=" . $conflevel); ?>)
+result <- ansari.test (<? getRK ("x"); ?>, <? getRK ("y"); ?>, alternative = "<? getRK ("alternative"); ?>"<? echo ($exact_opt); ?>, conf.int = <? getRK ("confint"); echo ($conflevel_opt); ?>)
 
 <?
 }

Modified: trunk/rkward/rkward/plugins/analysis/ansari_bradley/ansari_bradley_test.rkh
===================================================================
--- trunk/rkward/rkward/plugins/analysis/ansari_bradley/ansari_bradley_test.rkh	2009-08-22 20:29:19 UTC (rev 2621)
+++ trunk/rkward/rkward/plugins/analysis/ansari_bradley/ansari_bradley_test.rkh	2009-08-24 09:53:39 UTC (rev 2622)
@@ -14,7 +14,7 @@
 		<setting id="y">Select the data to be computed. The vectors need to be numeric.</setting>
 		<setting id="alternative">Here you can specify the alternative hypothesis. It must be one of "two sided", "greater" or "less".</setting>
 		<caption id="tab_options"/>
-		<setting id="exact">Defines whether an exact p-value should be computed.</setting>
+		<setting id="exact">Defines whether an exact p-value should be computed. To compute an exact p-value in the presence of ties, use <link href="rkward://component/ansari_bradley_exact_test"/>.</setting>
 		<setting id="confint">Check this if you want the confidence interval to be computed.</setting>
 		<setting id="conflevel">Here you can define the confidence level of the interval (95% is typical).</setting>
 	</settings>

Modified: trunk/rkward/rkward/plugins/analysis/ansari_bradley/ansari_bradley_test.xml
===================================================================
--- trunk/rkward/rkward/plugins/analysis/ansari_bradley/ansari_bradley_test.xml	2009-08-22 20:29:19 UTC (rev 2621)
+++ trunk/rkward/rkward/plugins/analysis/ansari_bradley/ansari_bradley_test.xml	2009-08-24 09:53:39 UTC (rev 2622)
@@ -3,6 +3,10 @@
 	<code file="ansari_bradley_test.php"/>
 	<help file="ansari_bradley_test.rkh"/>
 
+	<logic>
+		<connect client="conflevel.enabled" governor="confint.state"/>
+	</logic>
+
 	<dialog label="Ansari-Bradley two-sample test">
 		<tabbook>
 			<tab label="Basic settings" id="tab_variables">


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