http://wiki.stat.ucla.edu/socr/index.php?title=One_Way_ANOVA&feed=atom&action=history
One Way ANOVA - Revision history
2024-03-28T14:46:47Z
Revision history for this page on the wiki
MediaWiki 1.15.1
http://wiki.stat.ucla.edu/socr/index.php?title=One_Way_ANOVA&diff=2539&oldid=prev
IvoDinov at 05:48, 19 January 2007
2007-01-19T05:48:02Z
<p></p>
<table style="background-color: white; color:black;">
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr valign='top'>
<td colspan='2' style="background-color: white; color:black;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black;">Revision as of 05:48, 19 January 2007</td>
</tr>
<tr><td colspan="2" class="diff-lineno">Line 101:</td>
<td colspan="2" class="diff-lineno">Line 101:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>}</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>}</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div></pre></div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div></pre></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;"></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;"></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;">{{translate|pageName=http://wiki.stat.ucla.edu/socr/index.php?title=SOCR_Events_SOCR_CAUSEway_Workshop2007}}</ins></div></td></tr>
<!-- diff generator: internal 2024-03-28 14:46:47 -->
</table>
IvoDinov
http://wiki.stat.ucla.edu/socr/index.php?title=One_Way_ANOVA&diff=1831&oldid=prev
Annie at 21:07, 31 July 2006
2006-07-31T21:07:11Z
<p></p>
<p><b>New page</b></p><div><pre><br />
/*<br />
<br />
July 2006. Annie Che <chea@stat.ucla.edu>. UCLA Statistics.<br />
<br />
Source of example data: <br />
An Introduction to Computational Statitics by Robert I. Jennrich.<br />
Page 199, example of regression on time for coins to reach bottom of fountains.<br />
<br />
*/<br />
package edu.ucla.stat.SOCR.analyses.example;<br />
<br />
import java.util.HashMap;<br />
import edu.ucla.stat.SOCR.analyses.data.Data;<br />
import edu.ucla.stat.SOCR.analyses.data.DataType;<br />
import edu.ucla.stat.SOCR.analyses.result.AnovaOneWayResult;<br />
<br />
<br />
public class AnovaOneWayExample {<br />
public static void main(String args[]) {<br />
String[] group = <br />
{"1","1","1","1","1","1", "2","2","2","2","2","2","2","2", "3","3","3","3","3"};<br />
double[] time = <br />
{93,67,77,92,97,62, 136,120,115,104,115,121,102,130, 198,217,209,221,190};<br />
<br />
// you'll need to instantiate a data instance first.<br />
Data data = new Data();<br />
<br />
/*********************************************************************<br />
then put the data into the Data Object.<br />
append the predictor data using method "addPredictor".<br />
append the response data using method "addResponse".<br />
**********************************************************************/<br />
<br />
data.addPredictor(group, DataType.FACTOR);<br />
data.addResponse(time, DataType.QUANTITATIVE);<br />
<br />
try {<br />
AnovaOneWayResult result = data.modelAnovaOneWay();<br />
if (result != null) {<br />
<br />
// Getting the model's parameter estiamtes and statistics.<br />
int dfCTotal = result.getDFTotal();<br />
int dfModel = result.getDFModel();<br />
int dfError = result.getDFError();<br />
<br />
double rssTotal = result.getRSSTotal();<br />
double rssModel = result.getRSSModel();<br />
double rssError = result.getRSSError();<br />
<br />
double mssModel = result.getMSSModel();<br />
double mssError = result.getMSSError();<br />
<br />
double fValue = result.getFValue();<br />
String pValue = result.getPValue();<br />
<br />
double[] residuals = result.getResiduals();<br />
double[] predicted = result.getPredicted();<br />
<br />
// residuals after being sorted ascendantly.<br />
double[] sortedResiduals = result.getSortedResiduals();<br />
<br />
// sortedResiduals after being standardized.<br />
double[] sortedStandardizedResiduals = <br />
result.getSortedStandardizedResiduals();<br />
<br />
// the original index of sortedResiduals, stored as integer array.<br />
int[] sortedResidualsIndex = result.getSortedResidualsIndex();<br />
<br />
// the normal quantiles of sortedResiduals.<br />
double[] sortedNormalQuantiles = result.getSortedNormalQuantiles();<br />
<br />
// sortedNormalQuantiles after being standardized.<br />
double[] sortedStandardizedNormalQuantiles = <br />
result.getSortedStandardizedNormalQuantiles();<br />
<br />
System.out.println("dfCTotal = " + dfCTotal);<br />
System.out.println("dfModel = " + dfModel);<br />
System.out.println("dfError = " + dfError);<br />
<br />
System.out.println("rssTotal = " + rssTotal);<br />
System.out.println("rssModel = " + rssModel);<br />
System.out.println("rssError = " + rssError);<br />
<br />
System.out.println("mssModel = " + mssModel);<br />
System.out.println("mssError = " + mssError);<br />
<br />
System.out.println("fValue = " + fValue);<br />
System.out.println("pValue = " + pValue);<br />
<br />
<br />
for (int i = 0; i < residuals.length; i++) {<br />
System.out.println("residuals["+i+"] = " + residuals[i]);<br />
}<br />
<br />
}<br />
} catch (Exception e) {<br />
System.out.println(e);<br />
}<br />
}<br />
}<br />
</pre></div>
Annie