edu.ucla.stat.SOCR.JRI
Class Ranalysis

java.lang.Object
  extended by edu.ucla.stat.SOCR.JRI.Ranalysis

public class Ranalysis
extends java.lang.Object


Field Summary
protected static java.lang.String DEFAULT_ANALYSIS_NAME
           
protected static java.lang.String DEFAULT_DATAVALUE_NAME
           
protected static java.lang.String DEFAULT_ELEMENT_NAME
           
protected static java.lang.String DEFAULT_IN_FNAME
           
protected static java.lang.String DEFAULT_OUT_FNAME
           
protected static java.lang.String DEFAULT_TEMPLATE_FNAME
           
 
Constructor Summary
Ranalysis(org.w3c.dom.Document input_xml, org.w3c.dom.Document template_xml)
           
Ranalysis(java.lang.String[] Rargs)
          Constructor
Ranalysis(java.lang.String[] Rargs, java.lang.String in_fName, java.lang.String t_fName, java.lang.String out_fName)
           
 
Method Summary
protected  void anova()
           
protected  void do_ancova(org.w3c.dom.Document t_xml)
           
 void do_anova(org.w3c.dom.Document t_xml)
           
 void do_glm(org.w3c.dom.Document t_xml)
           
 void do_lm(org.w3c.dom.Document t_xml)
           
protected  void do_plotdata()
           
 void do_timeSeries(org.w3c.dom.Document t_xml)
           
 org.w3c.dom.Document getAnalysisResults()
           
protected  java.lang.String getTimeSeriesResult(java.lang.String[] s)
           
protected  void insert(java.lang.String nName, java.lang.String value)
           
protected  void lm_xml(Rengine re)
           
protected  void lm()
           
protected  java.lang.String makeFormulae(java.lang.String command)
           
protected  java.lang.String normalize(java.lang.String s)
          Normalizes the given string.
protected  int[] parseInt(java.lang.String[] ss)
           
protected  double[] parseNumber(java.lang.String[] ss)
           
 void print(Rengine re, org.w3c.dom.NodeList elements)
           
protected  void printEl(Rengine re, org.w3c.dom.Element element)
           
protected  void readInput()
           
protected  void Rend(Rengine re)
           
protected  void RLoop(Rengine re)
           
protected  Rengine Rstart(java.lang.String[] Rargs)
           
protected  void runXML(org.w3c.dom.Document t_xml)
           
protected  void runXMLFile(java.lang.String t_fName)
           
protected  void setInput()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_ELEMENT_NAME

protected static final java.lang.String DEFAULT_ELEMENT_NAME
See Also:
Constant Field Values

DEFAULT_ANALYSIS_NAME

protected static final java.lang.String DEFAULT_ANALYSIS_NAME
See Also:
Constant Field Values

DEFAULT_DATAVALUE_NAME

protected static final java.lang.String DEFAULT_DATAVALUE_NAME
See Also:
Constant Field Values

DEFAULT_IN_FNAME

protected static final java.lang.String DEFAULT_IN_FNAME
See Also:
Constant Field Values

DEFAULT_OUT_FNAME

protected static final java.lang.String DEFAULT_OUT_FNAME
See Also:
Constant Field Values

DEFAULT_TEMPLATE_FNAME

protected static final java.lang.String DEFAULT_TEMPLATE_FNAME
See Also:
Constant Field Values
Constructor Detail

Ranalysis

public Ranalysis(java.lang.String[] Rargs)
Constructor


Ranalysis

public Ranalysis(java.lang.String[] Rargs,
                 java.lang.String in_fName,
                 java.lang.String t_fName,
                 java.lang.String out_fName)

Ranalysis

public Ranalysis(org.w3c.dom.Document input_xml,
                 org.w3c.dom.Document template_xml)
Method Detail

getAnalysisResults

public org.w3c.dom.Document getAnalysisResults()

RLoop

protected void RLoop(Rengine re)

Rend

protected void Rend(Rengine re)

Rstart

protected Rengine Rstart(java.lang.String[] Rargs)

runXMLFile

protected void runXMLFile(java.lang.String t_fName)

runXML

protected void runXML(org.w3c.dom.Document t_xml)

readInput

protected void readInput()

setInput

protected void setInput()

do_lm

public void do_lm(org.w3c.dom.Document t_xml)

do_timeSeries

public void do_timeSeries(org.w3c.dom.Document t_xml)

do_glm

public void do_glm(org.w3c.dom.Document t_xml)

do_anova

public void do_anova(org.w3c.dom.Document t_xml)

do_ancova

protected void do_ancova(org.w3c.dom.Document t_xml)

makeFormulae

protected java.lang.String makeFormulae(java.lang.String command)

do_plotdata

protected void do_plotdata()

insert

protected void insert(java.lang.String nName,
                      java.lang.String value)

parseInt

protected int[] parseInt(java.lang.String[] ss)
                  throws java.lang.NumberFormatException
Throws:
java.lang.NumberFormatException

parseNumber

protected double[] parseNumber(java.lang.String[] ss)

print

public void print(Rengine re,
                  org.w3c.dom.NodeList elements)

printEl

protected void printEl(Rengine re,
                       org.w3c.dom.Element element)

getTimeSeriesResult

protected java.lang.String getTimeSeriesResult(java.lang.String[] s)

normalize

protected java.lang.String normalize(java.lang.String s)
Normalizes the given string.


lm_xml

protected void lm_xml(Rengine re)

lm

protected void lm()

anova

protected void anova()