org.rosuda.JGR.robjects
Class RModel

java.lang.Object
  extended by org.rosuda.JGR.robjects.RModel

public class RModel
extends java.lang.Object

RModel - This is a simple java-representation of a model in R (currently only lm and glm are implemented) providing several information.

Author:
Markus Helbig RoSuDa 2003 - 2005

Constructor Summary
RModel(java.lang.String name, java.lang.String type)
           
 
Method Summary
 java.lang.String getCall()
          Get call-statement of the model.
 java.lang.String getData()
          Get data name of model.
 java.lang.String getFamily()
          Get family type of model.
 java.util.Vector getInfo()
          Get information about this model: name, data, type, family, degree-of-freedom, r-square, aic, deviance.
 java.lang.String getName()
          Get the name of the model.
 java.lang.String getToolTip()
          Get tooltip-text implementation, shows the call statement.
 java.lang.String getTypeName()
          Get the type of the model, like lm, glm.
 void setAic(double a)
          Set AIC value of model.
 void setCall(java.lang.String call)
          Set the call statement from R concerning the model.
 void setData(java.lang.String d)
          Set data name of model, which means the data the model is based on.
 void setDeviance(double d)
          Set deviance value of model.
 void setDf(int df)
          Set degree of freedom value of model.
 void setFamily(java.lang.String f)
          Set family name of model, needed with glm-models: binomial, poisson ....
 void setRsquared(double r)
          Set r-square value of the model.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RModel

public RModel(java.lang.String name,
              java.lang.String type)
Method Detail

getTypeName

public java.lang.String getTypeName()
Get the type of the model, like lm, glm.

Returns:
r-class of model

getName

public java.lang.String getName()
Get the name of the model.

Returns:
name of model

setCall

public void setCall(java.lang.String call)
Set the call statement from R concerning the model.

Parameters:
call - call-statement

getCall

public java.lang.String getCall()
Get call-statement of the model.

Returns:
call-statement

getToolTip

public java.lang.String getToolTip()
Get tooltip-text implementation, shows the call statement.

Returns:
tooltip-text

setRsquared

public void setRsquared(double r)
Set r-square value of the model.

Parameters:
r - r-square value

setDeviance

public void setDeviance(double d)
Set deviance value of model.

Parameters:
d - deviance value

setDf

public void setDf(int df)
Set degree of freedom value of model.

Parameters:
df - degree of freedom value

setAic

public void setAic(double a)
Set AIC value of model.

Parameters:
a - AIC value

setFamily

public void setFamily(java.lang.String f)
Set family name of model, needed with glm-models: binomial, poisson ....

Parameters:
f - family name

getFamily

public java.lang.String getFamily()
Get family type of model.

Returns:
family-type

setData

public void setData(java.lang.String d)
Set data name of model, which means the data the model is based on.

Parameters:
d - data name

getData

public java.lang.String getData()
Get data name of model.

Returns:
data-name

getInfo

public java.util.Vector getInfo()
Get information about this model: name, data, type, family, degree-of-freedom, r-square, aic, deviance.

Returns:
information

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object