[rkward-cvs] SF.net SVN: rkward: [1488] trunk/rkward/rkward/plugins/analysis
sjar at users.sourceforge.net
sjar at users.sourceforge.net
Mon Feb 26 21:27:25 UTC 2007
Revision: 1488
http://svn.sourceforge.net/rkward/?rev=1488&view=rev
Author: sjar
Date: 2007-02-26 13:27:25 -0800 (Mon, 26 Feb 2007)
Log Message:
-----------
* new test to check for outliers
* number of known issues still need to be fixed:
- some of the test have max length of n=30
- some test can not handle NAs correctly
Added Paths:
-----------
trunk/rkward/rkward/plugins/analysis/outliers/
trunk/rkward/rkward/plugins/analysis/outliers/chisq_out_test.php
trunk/rkward/rkward/plugins/analysis/outliers/chisq_out_test.rkh
trunk/rkward/rkward/plugins/analysis/outliers/chisq_out_test.xml
trunk/rkward/rkward/plugins/analysis/outliers/dixon_test.php
trunk/rkward/rkward/plugins/analysis/outliers/dixon_test.rkh
trunk/rkward/rkward/plugins/analysis/outliers/dixon_test.xml
trunk/rkward/rkward/plugins/analysis/outliers/grubbs_test.php
trunk/rkward/rkward/plugins/analysis/outliers/grubbs_test.rkh
trunk/rkward/rkward/plugins/analysis/outliers/grubbs_test.xml
trunk/rkward/rkward/plugins/analysis/outliers/outlier.php
trunk/rkward/rkward/plugins/analysis/outliers/outlier.rkh
trunk/rkward/rkward/plugins/analysis/outliers/outlier.xml
Added: trunk/rkward/rkward/plugins/analysis/outliers/chisq_out_test.php
===================================================================
--- trunk/rkward/rkward/plugins/analysis/outliers/chisq_out_test.php (rev 0)
+++ trunk/rkward/rkward/plugins/analysis/outliers/chisq_out_test.php 2007-02-26 21:27:25 UTC (rev 1488)
@@ -0,0 +1,63 @@
+<?
+ function preprocess () {
+ }
+
+ function calculate () {
+ $vars = "substitute (" . str_replace ("\n", "), substitute (", trim (getRK_val ("x"))) . ")";
+
+?>
+require(outliers)
+
+rk.temp.objects <- list (<? echo ($vars); ?>)
+rk.temp.results <- data.frame ('Variable Name'=rep (NA, length (rk.temp.objects)), check.names=FALSE)
+i=0;
+for (var in rk.temp.objects) {
+ i = i+1
+ rk.temp.results$'Variable Name'[i] <- rk.get.description (var, is.substitute=TRUE)
+ try ({
+ rk.temp.t <- chisq.out.test (eval (var), opposite = <? getRK ("opposite"); ?>, variance = var (eval (var)))
+ rk.temp.variance <- var (eval (var))
+ rk.temp.results$'Chisquared-Statistic'[i] <- rk.temp.t$statistic
+ rk.temp.results$'p-value'[i] <- rk.temp.t$p.value
+ rk.temp.results$'Alternative Hypothesis'[i] <- rk.temp.t$alternative
+ rk.temp.results$'Variance'[i] <- rk.temp.variance
+ })
+ <? if (getRK_val ("mean")) { ?>
+ try (rk.temp.results$'Mean'[i] <- mean (eval (var)))
+ <? } ?>
+ <? if (getRK_val ("sd")) { ?>
+ try (rk.temp.results$'Standard Deviation'[i] <- sd (eval (var)))
+ <? } ?>
+ <? if (getRK_val ("median")) { ?>
+ try (rk.temp.results$'Median'[i] <- median (eval (var)))
+ <? } ?>
+ <? if (getRK_val ("min")) { ?>
+ try (rk.temp.results$'Minimum'[i] <- min (eval (var)))
+ <? } ?>
+ <? if (getRK_val ("max")) { ?>
+ try (rk.temp.results$'Maximum'[i] <- max (eval (var)))
+ <? } ?>
+ <? if (getRK_val ("length")) { ?>
+ try (rk.temp.results$'Length'[i] <- length (eval (var)))
+ <? }
+ if (getRK_val ("nacount")) { ?>
+ try (rk.temp.results$'NAs'[i] <- length (which(is.na(eval (var)))))
+ <? } ?>
+}
+<?
+ }
+
+function printout () {
+?>
+rk.header ("Chi-squared test for outlier",
+ parameters=list ("Opposite", "<? getRK ("opposite"); ?>"))
+rk.results (rk.temp.results)
+<?
+}
+
+function cleanup () {
+?>
+rm (list=grep ("^rk.temp", ls (), value=TRUE))
+<?
+}
+?>
Property changes on: trunk/rkward/rkward/plugins/analysis/outliers/chisq_out_test.php
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/rkward/rkward/plugins/analysis/outliers/chisq_out_test.rkh
===================================================================
--- trunk/rkward/rkward/plugins/analysis/outliers/chisq_out_test.rkh (rev 0)
+++ trunk/rkward/rkward/plugins/analysis/outliers/chisq_out_test.rkh 2007-02-26 21:27:25 UTC (rev 1488)
@@ -0,0 +1,31 @@
+<!DOCTYPE rkhelp>
+<document>
+ <summary>
+ This test performs a chisquared test for detection of one outlier.
+ </summary>
+
+ <usage>
+ Chose the data set to find one outlier, based on chisquared distribution of squared differences between data and sample mean. You can chose multiple data. Please consider that this test is no longer recommended. See <link href="rkward://rhelp/chisq.out.test"/>.
+ </usage>
+
+ <settings>
+ <caption id="tab_variables"/>
+ <setting id="x">Select the data to be computed. The vectors need to be numeric, and can be of different length but 30 is the limit.</setting>
+ <caption id="tab_options"/>
+ <setting id="opposite">Check if you want not the value with largest difference from the mean, but opposite (lowest, if most suspicious is highest etc.).</setting>
+ <setting id="mean">If checked this will calculate you the mean (regardless of missing values) is an additional out put. However, this will not effect your results but is just an optional information.</setting>
+ <setting id="sd">If checked this will calculate you the standard deviation (regardless of missing values) is an additional out put. However, this will not effect your results but is just an optional information.</setting>
+ <setting id="median">If checked this will calculate you the median (regardless of missing values) is an additional out put. However, this will not effect your results but is just an optional information.</setting>
+ <setting id="min">If checked this will calculate you the minimum (regardless of missing values) is an additional out put. However, this will not effect your results but is just an optional information.</setting>
+ <setting id="max">If checked this will calculate you the maximum (regardless of missing values) is an additional out put. However, this will not effect your results but is just an optional information.</setting>
+ <setting id="length">If checked, the length of the data vectors will be shown. However, this will not effect your results but is just an optional information.</setting>
+ <setting id="nacount">If checked, and in case of missing values this will show you the number of those. However, this will not effect your results but is just an optional information.</setting>
+ </settings>
+ <related>
+ <ul>
+ <li><link href="rkward://rhelp/dixon.test"/></li>
+ <li><link href="rkward://rhelp/grubbs.test"/></li>
+ </ul>
+
+ </related>
+</document>
Added: trunk/rkward/rkward/plugins/analysis/outliers/chisq_out_test.xml
===================================================================
--- trunk/rkward/rkward/plugins/analysis/outliers/chisq_out_test.xml (rev 0)
+++ trunk/rkward/rkward/plugins/analysis/outliers/chisq_out_test.xml 2007-02-26 21:27:25 UTC (rev 1488)
@@ -0,0 +1,45 @@
+<!DOCTYPE rkplugin>
+
+
+<document>
+ <code file="chisq_out_test.php"/>
+ <help file="chisq_out_test.rkh"/>
+
+ <dialog label="Chi-squared test for outlier">
+ <tabbook>
+ <tab id="tab_variables" label="Basic settings">
+ <row>
+ <varselector id="vars"/>
+ <column>
+ <varslot type="numeric" id="x" multi="true" source="vars" required="true" label="variable(s):"/>
+ </column>
+ </row>
+ </tab>
+ <tab label="Options" id="tab_options">
+ <frame label="test specific settings">
+ <radio id="opposite" label="Opposite">
+ <option value="FALSE" label="NO"/>
+ <option value="TRUE" label="YES"/>
+ </radio>
+ </frame>
+ <frame label="additional settings">
+ <row>
+ <column>
+ <checkbox id="mean" label="Show mean" value_unchecked="0" value="1" checked="false" />
+ <checkbox id="sd" label="Show standard deviation" value_unchecked="0" value="1" checked="false" />
+ <checkbox id="median" label="Show median" value_unchecked="0" value="1" checked="false" />
+ </column>
+ <column>
+ <checkbox id="min" label="Show Minimum" value_unchecked="0" value="1" checked="false" />
+ <checkbox id="max" label="Show Maximum" value_unchecked="0" value="1" checked="false" />
+ <checkbox id="length" label="Show Length" value_unchecked="0" value="1" checked="true" />
+ <checkbox id="nacount" label="Show Missing Values" value_unchecked="0" value="1" checked="true" />
+ </column>
+ <stretch/>
+ </row>
+ </frame>
+ </tab>
+ </tabbook>
+ </dialog>
+
+</document>
Property changes on: trunk/rkward/rkward/plugins/analysis/outliers/chisq_out_test.xml
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/rkward/rkward/plugins/analysis/outliers/dixon_test.php
===================================================================
--- trunk/rkward/rkward/plugins/analysis/outliers/dixon_test.php (rev 0)
+++ trunk/rkward/rkward/plugins/analysis/outliers/dixon_test.php 2007-02-26 21:27:25 UTC (rev 1488)
@@ -0,0 +1,46 @@
+<?
+ function preprocess () {
+ }
+
+ function calculate () {
+ $vars = "substitute (" . str_replace ("\n", "), substitute (", trim (getRK_val ("x"))) . ")";
+
+?>
+require(outliers)
+
+rk.temp.objects <- list (<? echo ($vars); ?>)
+rk.temp.results <- data.frame ('Variable Name'=rep (NA, length (rk.temp.objects)), check.names=FALSE)
+i=0;
+for (var in rk.temp.objects) {
+ i = i+1
+ rk.temp.results$'Variable Name'[i] <- rk.get.description (var, is.substitute=TRUE)
+ try ({
+ rk.temp.t <- dixon.test (eval (var), type = <? getRK ("type"); ?>, opposite = <? getRK ("opposite"); ?>, two.sided = <? getRK ("two_sided"); ?>)
+ rk.temp.results$'Dixon Q-statistic'[i] <- rk.temp.t$statistic["Q"]
+ rk.temp.results$'p-value'[i] <- rk.temp.t$p.value
+ rk.temp.results$'Alternative'[i] <- rk.temp.t$"alternative"
+ })
+ <? if (getRK_val ("length")) { ?>
+ try (rk.temp.results$'Length'[i] <- length (eval (var)))
+ <? }
+ if (getRK_val ("nacount")) { ?>
+ try (rk.temp.results$'NAs'[i] <- length (which(is.na(eval (var)))))
+ <? } ?>
+}
+<?
+ }
+
+function printout () {
+?>
+rk.header ("Dixon test for outlier",
+ parameters=list ("Type", "<? getRK ("type"); ?>", "Opposite", "<? getRK ("opposite"); ?>", "two-sided", "<? getRK ("two_sided"); ?>"))
+rk.results (rk.temp.results)
+<?
+}
+
+function cleanup () {
+?>
+rm (list=grep ("^rk.temp", ls (), value=TRUE))
+<?
+}
+?>
Property changes on: trunk/rkward/rkward/plugins/analysis/outliers/dixon_test.php
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/rkward/rkward/plugins/analysis/outliers/dixon_test.rkh
===================================================================
--- trunk/rkward/rkward/plugins/analysis/outliers/dixon_test.rkh (rev 0)
+++ trunk/rkward/rkward/plugins/analysis/outliers/dixon_test.rkh 2007-02-26 21:27:25 UTC (rev 1488)
@@ -0,0 +1,28 @@
+<!DOCTYPE rkhelp>
+<document>
+ <summary>
+ This test performs the Dixon test for outlier.
+ </summary>
+
+ <usage>
+ Chose the data to perform the Dixon test for outlier. You can chose multiple data. See <link href="rkward://rhelp/dixon.test"/>.
+ </usage>
+
+ <settings>
+ <caption id="tab_variables"/>
+ <setting id="x">Select the data to be computed. The vectors need to be numeric, and can be of different length but 30 is the limit.</setting>
+ <caption id="tab_options"/>
+ <setting id="type">This is specyfying the variant of test to be performed.</setting>
+ <setting id="two_sided">Here you can specify the alternative hypothesis. It must be one of "two-sided" or "not two-sided"</setting>
+ <setting id="opposite">Here you can define if you want to check not the value with largest difference from the mean, but opposite.</setting>
+ <setting id="length">If checked, the length of the data vectors will be shown. However, this will not effect your results but is just an optional information.</setting>
+ <setting id="nacount">If checked, and in case of missing values this will show you the number of those. However, this will not effect your results but is just an optional information.</setting>
+ </settings>
+ <related>
+ <ul>
+ <li><link href="rkward://rhelp/chisq.out.test"/></li>
+ <li><link href="rkward://rhelp/grubbs.test"/></li>
+ </ul>
+
+ </related>
+</document>
Added: trunk/rkward/rkward/plugins/analysis/outliers/dixon_test.xml
===================================================================
--- trunk/rkward/rkward/plugins/analysis/outliers/dixon_test.xml (rev 0)
+++ trunk/rkward/rkward/plugins/analysis/outliers/dixon_test.xml 2007-02-26 21:27:25 UTC (rev 1488)
@@ -0,0 +1,48 @@
+<!DOCTYPE rkplugin>
+
+
+<document>
+ <code file="dixon_test.php"/>
+ <help file="dixon_test.rkh"/>
+
+ <dialog label="Dixon tests for outlier">
+ <tabbook>
+ <tab id="tab_variables" label="Basic settings">
+ <row>
+ <varselector id="vars"/>
+ <column>
+ <varslot type="numeric" id="x" multi="true" source="vars" required="true" label="variable(s):"/>
+ </column>
+ </row>
+ </tab>
+ <tab id="tab_options" label="Options">
+ <column>
+ <frame label="test specific settings">
+ <dropdown id="type" label="Variant of test">
+ <option value="0" label="0"/>
+ <option value="10" label="10"/>
+ <option value="11" label="11"/>
+ <option value="12" label="12"/>
+ <option value="20" label="20"/>
+ <option value="21" label="21"/>
+ </dropdown>
+ <radio id="opposite" label="Opposite">
+ <option value="FALSE" label="NO"/>
+ <option value="TRUE" label="YES"/>
+ </radio>
+ <radio id="two_sided" label="two-sided (default)">
+ <option value="TRUE" label="YES"/>
+ <option value="FALSE" label="NO"/>
+ </radio>
+ </frame>
+ <frame label="additional settings">
+ <checkbox id="length" label="Show Length" value_unchecked="0" value="1" checked="true" />
+ <checkbox id="nacount" label="Show Missing Values" value_unchecked="0" value="1" checked="false" />
+ </frame>
+ </column>
+ <stretch/>
+ </tab>
+ </tabbook>
+ </dialog>
+
+</document>
Property changes on: trunk/rkward/rkward/plugins/analysis/outliers/dixon_test.xml
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/rkward/rkward/plugins/analysis/outliers/grubbs_test.php
===================================================================
--- trunk/rkward/rkward/plugins/analysis/outliers/grubbs_test.php (rev 0)
+++ trunk/rkward/rkward/plugins/analysis/outliers/grubbs_test.php 2007-02-26 21:27:25 UTC (rev 1488)
@@ -0,0 +1,47 @@
+<?
+ function preprocess () {
+ }
+
+ function calculate () {
+ $vars = "substitute (" . str_replace ("\n", "), substitute (", trim (getRK_val ("x"))) . ")";
+
+?>
+require(outliers)
+
+rk.temp.objects <- list (<? echo ($vars); ?>)
+rk.temp.results <- data.frame ('Variable Name'=rep (NA, length (rk.temp.objects)), check.names=FALSE)
+i=0;
+for (var in rk.temp.objects) {
+ i = i+1
+ rk.temp.results$'Variable Name'[i] <- rk.get.description (var, is.substitute=TRUE)
+ try ({
+ rk.temp.t <- grubbs.test (eval (var), type = <? getRK ("type"); ?>, opposite = <? getRK ("opposite"); ?>, two.sided = <? getRK ("two_sided"); ?>)
+ rk.temp.results$'G'[i] <- rk.temp.t$statistic["G"]
+ rk.temp.results$'U'[i] <- rk.temp.t$statistic["U"]
+ rk.temp.results$'p-value'[i] <- rk.temp.t$p.value
+ rk.temp.results$'Alternative Hypothesis'[i] <- rk.temp.t$"alternative"
+ })
+ <? if (getRK_val ("length")) { ?>
+ try (rk.temp.results$'Length'[i] <- length (eval (var)))
+ <? }
+ if (getRK_val ("nacount")) { ?>
+ try (rk.temp.results$'NAs'[i] <- length (which(is.na(eval (var)))))
+ <? } ?>
+}
+<?
+ }
+
+function printout () {
+?>
+rk.header ("Grubbs tests for one or two outliers in data sample",
+ parameters=list ("Type", "<? getRK ("type"); ?>", "Opposite", "<? getRK ("opposite"); ?>", "two-sided", "<? getRK ("two_sided"); ?>"))
+rk.results (rk.temp.results)
+<?
+}
+
+function cleanup () {
+?>
+rm (list=grep ("^rk.temp", ls (), value=TRUE))
+<?
+}
+?>
Property changes on: trunk/rkward/rkward/plugins/analysis/outliers/grubbs_test.php
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/rkward/rkward/plugins/analysis/outliers/grubbs_test.rkh
===================================================================
--- trunk/rkward/rkward/plugins/analysis/outliers/grubbs_test.rkh (rev 0)
+++ trunk/rkward/rkward/plugins/analysis/outliers/grubbs_test.rkh 2007-02-26 21:27:25 UTC (rev 1488)
@@ -0,0 +1,28 @@
+<!DOCTYPE rkhelp>
+<document>
+ <summary>
+ This test performs the Grubbs tests for one or two outliers in data sample.
+ </summary>
+
+ <usage>
+ Chose the data to perform the Grubbs tests for one or two outliers in data sample. You can chose multiple data. See <link href="rkward://rhelp/grubbs.test"/>.
+ </usage>
+
+ <settings>
+ <caption id="tab_variables"/>
+ <setting id="x">Select the data to be computed. The vectors need to be numeric, and can be of different length but 30 is the limit.</setting>
+ <caption id="tab_options"/>
+ <setting id="type">This is specyfying the variant of test to be performed. Please refere to the R-help here.</setting>
+ <setting id="two_sided">Here you can specify the alternative hypothesis. It must be one of "two-sided" or "not two-sided"</setting>
+ <setting id="opposite">Here you can define if you want to check not the value with largest difference from the mean, but opposite.</setting>
+ <setting id="length">If checked, the length of the data vectors will be shown. However, this will not effect your results but is just an optional information.</setting>
+ <setting id="nacount">If checked, and in case of missing values this will show you the number of those. However, this will not effect your results but is just an optional information.</setting>
+ </settings>
+ <related>
+ <ul>
+ <li><link href="rkward://rhelp/chisq.out.test"/></li>
+ <li><link href="rkward://rhelp/dixon.test"/></li>
+ </ul>
+
+ </related>
+</document>
Added: trunk/rkward/rkward/plugins/analysis/outliers/grubbs_test.xml
===================================================================
--- trunk/rkward/rkward/plugins/analysis/outliers/grubbs_test.xml (rev 0)
+++ trunk/rkward/rkward/plugins/analysis/outliers/grubbs_test.xml 2007-02-26 21:27:25 UTC (rev 1488)
@@ -0,0 +1,45 @@
+<!DOCTYPE rkplugin>
+
+
+<document>
+ <code file="grubbs_test.php"/>
+ <help file="grubbs_test.rkh"/>
+
+ <dialog label="Grubbs tests for one or two outliers in data sample">
+ <tabbook>
+ <tab id="tab_variables" label="Basic settings">
+ <row>
+ <varselector id="vars"/>
+ <column>
+ <varslot type="numeric" id="x" multi="true" source="vars" required="true" label="variable(s):"/>
+ </column>
+ </row>
+ </tab>
+ <tab id="tab_options" label="Options">
+ <column>
+ <frame label="test specific settings">
+ <radio id="type" label="Variant of test">
+ <option value="10" label="10"/>
+ <option value="11" label="11"/>
+ <option value="21" label="21"/>
+ </radio>
+ <radio id="opposite" label="Opposite">
+ <option value="FALSE" label="NO"/>
+ <option value="TRUE" label="YES"/>
+ </radio>
+ <radio id="two_sided" label="two-sided (default)">
+ <option value="TRUE" label="YES"/>
+ <option value="FALSE" label="NO"/>
+ </radio>
+ </frame>
+ <frame label="additional settings">
+ <checkbox id="length" label="Show Length" value_unchecked="0" value="1" checked="true" />
+ <checkbox id="nacount" label="Show Missing Values" value_unchecked="0" value="1" checked="false" />
+ </frame>
+ </column>
+ <stretch/>
+ </tab>
+ </tabbook>
+ </dialog>
+
+</document>
Property changes on: trunk/rkward/rkward/plugins/analysis/outliers/grubbs_test.xml
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/rkward/rkward/plugins/analysis/outliers/outlier.php
===================================================================
--- trunk/rkward/rkward/plugins/analysis/outliers/outlier.php (rev 0)
+++ trunk/rkward/rkward/plugins/analysis/outliers/outlier.php 2007-02-26 21:27:25 UTC (rev 1488)
@@ -0,0 +1,59 @@
+<?
+ function preprocess () {
+ }
+
+ function calculate () {
+ $vars = "substitute (" . str_replace ("\n", "), substitute (", trim (getRK_val ("x"))) . ")";
+
+?>
+require(outliers)
+
+rk.temp.objects <- list (<? echo ($vars); ?>)
+rk.temp.results <- data.frame ('Variable Name'=rep (NA, length (rk.temp.objects)), check.names=FALSE)
+i=0;
+for (var in rk.temp.objects) {
+ i = i+1
+ rk.temp.results$'Variable Name'[i] <- rk.get.description (var, is.substitute=TRUE)
+ try ({
+ rk.temp.t <- outlier (eval (var), opposite = <? getRK ("opposite"); ?>, logical = <? getRK ("logical"); ?>)
+ rk.temp.results$'Outlier'[i] <- rk.temp.t
+ })
+ <? if (getRK_val ("mean")) { ?>
+ try (rk.temp.results$'Mean'[i] <- mean (eval (var)))
+ <? } ?>
+ <? if (getRK_val ("sd")) { ?>
+ try (rk.temp.results$'Standard Deviation'[i] <- sd (eval (var)))
+ <? } ?>
+ <? if (getRK_val ("median")) { ?>
+ try (rk.temp.results$'Median'[i] <- median (eval (var)))
+ <? } ?>
+ <? if (getRK_val ("min")) { ?>
+ try (rk.temp.results$'Minimum'[i] <- min (eval (var)))
+ <? } ?>
+ <? if (getRK_val ("max")) { ?>
+ try (rk.temp.results$'Maximum'[i] <- max (eval (var)))
+ <? } ?>
+ <? if (getRK_val ("length")) { ?>
+ try (rk.temp.results$'Length'[i] <- length (eval (var)))
+ <? }
+ if (getRK_val ("nacount")) { ?>
+ try (rk.temp.results$'NAs'[i] <- length (which(is.na(eval (var)))))
+ <? } ?>
+}
+<?
+ }
+
+function printout () {
+?>
+rk.header ("Outlier",
+ parameters=list ("Opposite", "<? getRK ("opposite"); ?>", "Logical", "<? getRK ("logical"); ?>"))
+rk.results (rk.temp.results)
+<?
+}
+
+function cleanup () {
+?>
+rm (list=grep ("^rk.temp", ls (), value=TRUE))
+<?
+}
+?>
Property changes on: trunk/rkward/rkward/plugins/analysis/outliers/outlier.php
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/rkward/rkward/plugins/analysis/outliers/outlier.rkh
===================================================================
--- trunk/rkward/rkward/plugins/analysis/outliers/outlier.rkh (rev 0)
+++ trunk/rkward/rkward/plugins/analysis/outliers/outlier.rkh 2007-02-26 21:27:25 UTC (rev 1488)
@@ -0,0 +1,30 @@
+<!DOCTYPE rkhelp>
+<document>
+ <summary>
+ This test finds Outlier.
+ </summary>
+
+ <usage>
+ Chose the data to find the value with the largest difference from the sample mean. You can test multiple data sets. See <link href="rkward://rhelp/outlier"/>.
+ </usage>
+
+ <settings>
+ <caption id="tab_variables"/>
+ <setting id="x">Select the data to be computed. The vectors need to be numeric, and can be of different length but 30 is the limit.</setting>
+ <caption id="tab_options"/>
+ <setting id="opposite">Set to give the opposite value. If the largest value has maximum difference from the mean, it gives smallest and vice versa.</setting>
+ <setting id="mean">If checked this will calculate you the mean (regardless of missing values) is an additional out put. However, this will not effect your results but is just an optional information.</setting>
+ <setting id="sd">If checked this will calculate you the standard deviation (regardless of missing values) is an additional out put. However, this will not effect your results but is just an optional information.</setting>
+ <setting id="median">If checked this will calculate you the median (regardless of missing values) is an additional out put. However, this will not effect your results but is just an optional information.</setting>
+ <setting id="min">If checked this will calculate you the minimum (regardless of missing values) is an additional out put. However, this will not effect your results but is just an optional information.</setting>
+ <setting id="max">If checked this will calculate you the maximum (regardless of missing values) is an additional out put. However, this will not effect your results but is just an optional information.</setting>
+ <setting id="length">If checked, the length of the data vectors will be shown. However, this will not effect your results but is just an optional information.</setting>
+ <setting id="nacount">If checked, and in case of missing values this will show you the number of those. However, this will not effect your results but is just an optional information.</setting>
+ </settings>
+ <related>
+ <ul>
+ <li><link href="rkward://rhelp/rm.outlier"/></li>
+ </ul>
+
+ </related>
+</document>
Added: trunk/rkward/rkward/plugins/analysis/outliers/outlier.xml
===================================================================
--- trunk/rkward/rkward/plugins/analysis/outliers/outlier.xml (rev 0)
+++ trunk/rkward/rkward/plugins/analysis/outliers/outlier.xml 2007-02-26 21:27:25 UTC (rev 1488)
@@ -0,0 +1,45 @@
+<!DOCTYPE rkplugin>
+
+
+<document>
+ <code file="outlier.php"/>
+ <help file="outlier.rkh"/>
+
+ <dialog label="Find value with largest difference from the mean">
+ <tabbook>
+ <tab id="tab_variables" label="Basic settings">
+ <row>
+ <varselector id="vars"/>
+ <column>
+ <varslot type="numeric" id="x" multi="true" source="vars" required="true" label="variable(s):"/>
+ </column>
+ </row>
+ </tab>
+ <tab label="Options" id="tab_options">
+ <frame label="test specific settings">
+ <radio id="opposite" label="Opposite">
+ <option value="FALSE" label="NO"/>
+ <option value="TRUE" label="YES"/>
+ </radio>
+ </frame>
+ <frame label="additional settings">
+ <row>
+ <column>
+ <checkbox id="mean" label="Show mean" value_unchecked="0" value="1" checked="true" />
+ <checkbox id="sd" label="Show standard deviation" value_unchecked="0" value="1" checked="true" />
+ <checkbox id="median" label="Show median" value_unchecked="0" value="1" checked="false" />
+ </column>
+ <column>
+ <checkbox id="min" label="Show Minimum" value_unchecked="0" value="1" checked="false" />
+ <checkbox id="max" label="Show Maximum" value_unchecked="0" value="1" checked="false" />
+ <checkbox id="length" label="Show Length" value_unchecked="0" value="1" checked="true" />
+ <checkbox id="nacount" label="Show Missing Values" value_unchecked="0" value="1" checked="true" />
+ </column>
+ <stretch/>
+ </row>
+ </frame>
+ </tab>
+ </tabbook>
+ </dialog>
+
+</document>
Property changes on: trunk/rkward/rkward/plugins/analysis/outliers/outlier.xml
___________________________________________________________________
Name: svn:executable
+ *
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